WebResponse.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

將序列化目標物件所需的資料填入 SerializationInfoPopulates a SerializationInfo with the data that is 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
Protected Overridable Sub GetObjectData (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

參數

serializationInfo
SerializationInfo

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

streamingContext
StreamingContext

StreamingContext,指定這個序列化的目的地。A StreamingContext that specifies the destination for this serialization.

備註

包含在中的任何物件 SerializationInfo 都會由格式器自動追蹤和序列化。Any objects included in the SerializationInfo are automatically tracked and serialized by the formatter.

適用於