XmlSerializationReader.Fixup 類別

定義

存放一個 XmlSerializationFixupCallback 委派執行個體,加上此方法的輸入資料;同時也當做此方法的參數。Holds an XmlSerializationFixupCallback delegate instance, plus the method's inputs; also serves as the parameter for the method.

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

protected: ref class XmlSerializationReader::Fixup
protected class XmlSerializationReader.Fixup
Protected Class XmlSerializationReader.Fixup
繼承
XmlSerializationReader.Fixup

備註

將 XML 檔案還原序列化為 .NET Framework 物件時,.NET Framework XML 序列化基礎結構會動態具現化可實作為 XmlSerializationFixupCallback 委派的修正方法;此外,它會將 XmlSerializationReader.Fixup 類別物件具現化,以儲存修正方法及其輸入。While deserializing XML documents into .NET Framework objects, the .NET Framework XML serialization infrastructure dynamically instantiates fix-up methods that implement the XmlSerializationFixupCallback delegate; plus, it instantiates XmlSerializationReader.Fixup class objects to store the fix-up methods along with their inputs. 基礎結構會針對其資料類型對應至 .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. 在此過程中,基礎結構會針對 SOAP 編碼的 multireferenced XML 資料,產生 XmlSerializationFixupCallback 屬性加上 XmlSerializationReader.Fixup 類別物件。During this process, the infrastructure generates XmlSerializationFixupCallback properties plus XmlSerializationReader.Fixup class objects for SOAP-encoded, multireferenced XML data. 然後在還原序列化期間叫用這些方法。The methods are then invoked during deserialization.

請勿直接建立 XmlSerializationFixupCallbackXmlSerializationReader.Fixup 類別的實例。Do not directly create an instance of the XmlSerializationFixupCallback or XmlSerializationReader.Fixup class.

Soap 1.1 規格的第5節會說明 SOAP 編碼。SOAP encoding is described in Section 5 of the SOAP 1.1 specification.

建構函式

XmlSerializationReader.Fixup(Object, XmlSerializationFixupCallback, Int32)

初始化 XmlSerializationReader.Fixup 類別的新執行個體。Initializes a new instance of the XmlSerializationReader.Fixup class.

XmlSerializationReader.Fixup(Object, XmlSerializationFixupCallback, String[])

初始化 XmlSerializationReader.Fixup 類別的新執行個體。Initializes a new instance of the XmlSerializationReader.Fixup class.

屬性

Callback

取得建立 XmlSerializationFixupCallback 委派之執行個體的回呼方法。Gets the callback method that creates an instance of the XmlSerializationFixupCallback delegate.

Ids

取得或設定屬於 Source 屬性之物件的索引鍵陣列。回呼實作會負責將值填入這些屬性內。Gets or sets an array of keys for the objects that belong to the Source property whose values get filled in by the callback implementation.

Source

取得或設定一個物件,其中含有其他物件,回呼實作會負責將值填入這些物件內。Gets or sets the object that contains other objects whose values get filled in by the callback implementation.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱