XName.ISerializable.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

將序列化目標物件的所需資料填入 SerializationInfoPopulates a SerializationInfo with the data required to serialize the target object.

 virtual void System.Runtime.Serialization.ISerializable.GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context) = System::Runtime::Serialization::ISerializable::GetObjectData;
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Sub GetObjectData (info As SerializationInfo, context As StreamingContext) Implements ISerializable.GetObjectData

參數

info
SerializationInfo

要以資料填入的 SerializationInfoThe SerializationInfo to populate with data.

context
StreamingContext

這個序列化的目的地 (請參閱<StreamingContext>)。The destination (see StreamingContext) for this serialization.

實作

備註

這個方法會在內部用來序列化包含 LINQ to XML 物件的物件圖形。This method is used internally to serialize object graphs that contain LINQ to XML objects.

適用於