XmlSerializationFixupCallback 委托


XmlSerializer 类用来反序列化 SOAP 编码的 XML 数据的委托。Delegate used by the XmlSerializer class for deserialization of SOAP-encoded XML data.

此 API 支持产品基础结构,不能在代码中直接使用。

public delegate void XmlSerializationFixupCallback(System::Object ^ fixup);
public delegate void XmlSerializationFixupCallback(object fixup);
type XmlSerializationFixupCallback = delegate of obj -> unit
Public Delegate Sub XmlSerializationFixupCallback(fixup As Object)



XmlSerializationReader.Fixup 类的一个实例,包含要链接的对象和待填写项的字符串标识符数组。An instance of the XmlSerializationReader.Fixup class that contains the object to be fixed and the array of string identifiers for the items to fill in.



将 xml 文档反序列化为 .NET Framework 对象时, .NET Framework 的 XML 序列化基础结构会动态地实例化XmlSerializationFixupCallback实现委托的修复方法。While deserializing XML documents into .NET Framework objects, the .NET Framework XML serialization infrastructure dynamically instantiates fix-up methods that implement the XmlSerializationFixupCallback delegate. 基础结构为其数据类型映射到 .NET Framework 引用类型的 SOAP 编码数组执行此操作。The infrastructure does so for SOAP-encoded arrays whose data types map to .NET Framework reference types. 然后, 如有必要, 将调用一个修复方法来填充数组中的对象。Then, as necessary, a fix-up method is called to fill in the objects in the array.

此外, 在初始化期间, .NET Framework XML 序列化基础结构会动态生成和编译派生自XmlSerializationReader类的反序列化的临时类。In addition, during initialization, the .NET Framework XML serialization infrastructure dynamically generates and compiles a temporary class for deserialization derived from the XmlSerializationReader class. 在此过程中, 基础结构XmlSerializationFixupCallback将生成 SOAP 编码的多引用 XML 数据的方法。During this process, the infrastructure generates XmlSerializationFixupCallback methods for SOAP-encoded, multi-referenced XML data. 然后, 在反序列化过程中调用方法。The methods are then invoked during deserialization.

不要直接创建XmlSerializationFixupCallback类的实例。Do not directly create an instance of the XmlSerializationFixupCallback class.

Soap 编码在 SOAP 1.1 规范的第5节中进行了介绍。SOAP encoding is described in Section 5 of the SOAP 1.1 specification.



获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.