XmlSerializationWriteCallback 委托

定义

XmlSerializer 类为了对 SOAP 编码的非根 XML 数据的类型进行序列化而使用的委托。Delegate that is used by the XmlSerializer class for serialization of types from SOAP-encoded, non-root XML data.

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

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

参数

o
Object

将序列化的对象。The object being serialized.

继承
XmlSerializationWriteCallback

注解

在初始化期间, .NET Framework XML 序列化基础结构会动态生成并编译一个临时类, 以便XmlSerializationWriter从类派生。During initialization, the .NET Framework XML serialization infrastructure dynamically generates and compiles a temporary class for serialization derived from the XmlSerializationWriter class. 在此过程中, .NET Framework 生成实现XmlSerializationWriteCallback类委托的写入方法。During this process, the .NET Framework generates write methods that implement the XmlSerializationWriteCallback class delegate. 它用于在 .NET Framework 类型和 XML 数据类型之间进行某些映射, 这些映射通过 SOAP 编码的 XML 进行序列化, 而不是根元素。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. 然后, 根据需要, 在序列化过程中调用 write 方法。Then, as necessary, a write method is called during serialization.

不应直接实例化XmlSerializationWriteCallbackYou should not directly instantiate XmlSerializationWriteCallback.

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

扩展方法

GetMethodInfo(Delegate)

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

适用于