Peer.ISerializable.GetObjectData(SerializationInfo, StreamingContext) Peer.ISerializable.GetObjectData(SerializationInfo, StreamingContext) Peer.ISerializable.GetObjectData(SerializationInfo, StreamingContext) Method

定義

使用序列化指定的 PeerObject 執行個體所需的資料填入 SerializationInfo 類別執行個體 。Populates a SerializationInfo class instance with the data required to serialize the specified PeerObject instance. 衍生的型別必須呼叫基底型別 GetObjectData(SerializationInfo, StreamingContext) 方法。A derived type must call the base type GetObjectData(SerializationInfo, StreamingContext) method.

 virtual void System.Runtime.Serialization.ISerializable.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 SerializationInfo

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

context
StreamingContext StreamingContext StreamingContext

序列化的目的端。The destination for the serialization.

實作

適用於

另請參閱