HttpWebRequest.GetObjectData(SerializationInfo, StreamingContext) 方法

定义

注意

Serialization is obsoleted for this type. https://go.microsoft.com/fwlink/?linkid=14202

注意

Serialization is obsoleted for this type. http://go.microsoft.com/fwlink/?linkid=14202

使用序列化目标对象时所需的数据填充 SerializationInfoPopulates a SerializationInfo with the data required to serialize the target object.

protected:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
[System.Obsolete("Serialization is obsoleted for this type.  https://go.microsoft.com/fwlink/?linkid=14202")]
protected override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("Serialization is obsoleted for this type.  http://go.microsoft.com/fwlink/?linkid=14202")]
protected override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[<System.Obsolete("Serialization is obsoleted for this type.  https://go.microsoft.com/fwlink/?linkid=14202")>]
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Obsolete("Serialization is obsoleted for this type.  http://go.microsoft.com/fwlink/?linkid=14202")>]
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Protected Overrides Sub GetObjectData (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

参数

serializationInfo
SerializationInfo

要填充数据的 SerializationInfoThe SerializationInfo to populate with data.

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.

适用于