DataTable.GetObjectData(SerializationInfo, StreamingContext) DataTable.GetObjectData(SerializationInfo, StreamingContext) DataTable.GetObjectData(SerializationInfo, StreamingContext) DataTable.GetObjectData(SerializationInfo, StreamingContext) Method

定義

以序列化 DataTable 所需的資料,填入序列化資訊物件。Populates a serialization information object with the data needed to serialize the DataTable.

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

參數

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

SerializationInfo 物件,其保留與 DataTable 關聯的序列化資料。A SerializationInfo object that holds the serialized data associated with the DataTable.

context
StreamingContext StreamingContext StreamingContext StreamingContext

StreamingContext 物件,其包含與 DataTable 關聯之序列化資料流的來源和目的端。A StreamingContext object that contains the source and destination of the serialized stream associated with the DataTable.

實作

例外狀況

info 參數為 null 參考 (在 Visual Basic 中為 Nothing)。The info parameter is a null reference (Nothing in Visual Basic).

適用於

另請參閱