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

定義

SerializationInfo に、オブジェクトをシリアル化するために必要なデータを設定します。Populates a SerializationInfo with the data needed to serialize the target object.

protected:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit

パラメーター

serializationInfo
SerializationInfo SerializationInfo SerializationInfo

データの読み込み先となる SerializationInfoThe SerializationInfo to populate with data.

streamingContext
StreamingContext StreamingContext StreamingContext

このシリアル化の転送先を指定する StreamingContextA StreamingContext that specifies the destination for this serialization.

実装

注釈

に含まれるSerializationInfoオブジェクトは、フォーマッタによって自動的に追跡およびシリアル化されます。Any objects included in the SerializationInfo are automatically tracked and serialized by the formatter.

適用対象