FileWebRequest(SerializationInfo, StreamingContext) FileWebRequest(SerializationInfo, StreamingContext) FileWebRequest(SerializationInfo, StreamingContext) Constructor

Definition

Warning

This API is now obsolete.

Initializes a new instance of the FileWebRequest class from the specified instances of the SerializationInfo and StreamingContext classes.

protected:
 FileWebRequest(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")]
[System.Obsolete("Serialization is obsoleted for this type. https://go.microsoft.com/fwlink/?linkid=14202")]
protected FileWebRequest (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Net.FileWebRequest : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.FileWebRequest

Parameters

serializationInfo
SerializationInfo SerializationInfo SerializationInfo

A SerializationInfo object that contains the information that is required to serialize the new FileWebRequest object.

streamingContext
StreamingContext StreamingContext StreamingContext

A StreamingContext object that contains the source of the serialized stream that is associated with the new FileWebRequest object.

Remarks

This constructor implements the ISerializable interface for the FileWebRequest class.

Applies to

See also