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

定義

傳回序列化 Collection 物件所需的資料。Returns the data needed to serialize the Collection object.

 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context) = System::Runtime::Serialization::ISerializable::GetObjectData;
[System.Security.SecurityCritical]
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
Sub GetObjectData (info As SerializationInfo, context As StreamingContext) Implements ISerializable.GetObjectData

參數

info
SerializationInfo

SerializationInfo 物件,含有要序列化 Collection 物件的必要資訊。A SerializationInfo object containing the information required to serialize the Collection object.

context
StreamingContext

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

實作

屬性

備註

這個方法會傳回序列化 Collection 物件所需的資料。This method returns the data needed to serialize the Collection object.

適用於

另請參閱