System.Xml.Serialization.XmlSerializationReader.AddReadCallback Method

Stores an implementation of the System.Xml.Serialization.XmlSerializationReadCallback delegate and its input data for a later invocation.

Syntax

protected void AddReadCallback (string name, string ns, Type type, XmlSerializationReadCallback read)

Parameters

name
The name of the .NET Framework type that is being deserialized.
ns
The namespace of the .NET Framework type that is being deserialized.
type
The Type to be deserialized.
read
An System.Xml.Serialization.XmlSerializationReadCallback delegate.

Remarks

The protected members of System.Xml.Serialization.XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

During initialization, the .NET Framework XML serialization infrastructure dynamically generates and compiles a temporary class for deserialization that derives from System.Xml.Serialization.XmlSerializationReader. During this process, the .NET Framework generates read methods that implement the System.Xml.Serialization.XmlSerializationReadCallback delegate. It does so for certain mappings between .NET Framework types and XML data types that are serialized through SOAP-encoded XML and are not root elements. Next, as necessary, a read method is called during deserialization.

You should not directly create an instance of the System.Xml.Serialization.XmlSerializationReadCallback class.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0