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. 它會針對透過 SOAP 編碼的 XML 序列化且不是根項目的 .NET Framework 類型和 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 1.1 規格的第5節會說明 SOAP 編碼。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.

適用於