SortedSet<T>.ISerializable.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

實作 ISerializable 介面,並傳回序列化 SortedSet<T> 執行個體所需的資料。Implements the ISerializable interface, and returns the data that you need to serialize the SortedSet<T> instance.

 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

SerializationInfo 物件,包含序列化 SortedSet<T> 執行個體所需的資訊。A SerializationInfo object that contains the information that is required to serialize the SortedSet<T> instance.

context
StreamingContext

StreamingContext 結構,包含與 SortedSet<T> 執行個體相關聯之已序列化資料流的來源和目的地。A StreamingContext structure that contains the source and destination of the serialized stream associated with the SortedSet<T> instance.

實作

例外狀況

infonullinfo is null.

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 SortedSet<T> 執行個體轉換成 ISerializable 介面時,才能使用這個成員。It can be used only when the SortedSet<T> instance is cast to an ISerializable interface.

適用於