共用方式為


WebProxy.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

將序列化目標物件所需的資料填入 SerializationInfo

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

要以資料填入的 SerializationInfo

streamingContext
StreamingContext

StreamingContext,指定這個序列化的目的地。

備註

中包含的任何物件 SerializationInfo 都會由格式器自動追蹤和串行化。

適用於