Export (0) Print
Expand All

XmlSerializationReader.AddFixup Method (XmlSerializationReader.Fixup)

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Stores an object that contains a callback method instance that will be called, as necessary, to fill in the objects in a SOAP-encoded array.

Namespace:  System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

protected void AddFixup(
	XmlSerializationReader.Fixup fixup
)

Parameters

fixup
Type: System.Xml.Serialization.XmlSerializationReader.Fixup

An XmlSerializationFixupCallback delegate and the callback method's input data.

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

While deserializing XML documents into .NET Framework objects, the .NET Framework XML serialization infrastructure dynamically creates instances of fix-up methods that implement the XmlSerializationFixupCallback delegate and creates instances of the XmlSerializationReader.Fixup class to store the fix-up methods and their input data. The infrastructure does so for SOAP-encoded arrays whose data types map to .NET Framework reference types. Next, as necessary, a fix-up method is called to fill in the objects in the array.

In addition, during initialization, the .NET Framework XML serialization infrastructure dynamically generates and compiles a temporary class for deserialization that derives from XmlSerializationReader. During this process, the infrastructure generates XmlSerializationFixupCallback methods and XmlSerializationReader.Fixup objects for SOAP-encoded, multi-referenced XML data. The methods are then invoked during deserialization.

You should not directly create instances of the XmlSerializationFixupCallback or XmlSerializationReader.Fixup classes.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft