WebRequest.ISerializable.GetObjectData(SerializationInfo, StreamingContext) 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);

Parameters

serializationInfo
SerializationInfo SerializationInfo

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

streamingContext
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