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

定義

SerializationInfo を、指定した PeerObject をシリアル化するために必要なデータで設定します。Populates a SerializationInfo with the data required to serialize the specified PeerObject.

protected:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected 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
Protected Overridable Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

パラメーター

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

データを設定する SerializationInfo インスタンス。The SerializationInfo instance to populate with data.

context
StreamingContext StreamingContext StreamingContext StreamingContext

シリアル化先。The destination for the serialization.

実装

注釈

派生型は基本型の GetObjectData メソッドを呼び出す必要があります。A derived type must call the base type GetObjectData method.

適用対象

こちらもご覧ください