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 任何对象。

适用于