WebRequest.ISerializable.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

When overridden in a descendant class, populates a SerializationInfo instance with the data needed to serialize the WebRequest.

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

Parameters

serializationInfo
SerializationInfo

A SerializationInfo, which holds the serialized data for the WebRequest.

streamingContext
StreamingContext

A StreamingContext that contains the destination of the serialized stream associated with the new WebRequest.

Implements

Exceptions

An attempt is made to serialize the object, when the interface is not overridden in a descendant class.

Applies to