Export (0) Print
Expand All

HttpWebRequest Constructor

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

[Visual Basic]
Protected Sub New( _
   ByVal serializationInfo As SerializationInfo, _
   ByVal streamingContext As StreamingContext _
)
[C#]
protected HttpWebRequest(
   SerializationInfo serializationInfo,
 StreamingContext streamingContext
);
[C++]
protected: HttpWebRequest(
   SerializationInfo* serializationInfo,
 StreamingContext streamingContext
);
[JScript]
protected function HttpWebRequest(
   serializationInfo : SerializationInfo,
 streamingContext : StreamingContext
);

Parameters

serializationInfo
A SerializationInfo instance containing the information required to serialize the new HttpWebRequest instance.
streamingContext
A StreamingContext instance containing the source and destination of the serialized stream associated with the new HttpWebRequest instance.

Remarks

This constructor implements the ISerializable interface for the HttpWebRequest class.

An application must run in full trust mode when using serialization.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

HttpWebRequest Class | HttpWebRequest Members | System.Net Namespace | XML and SOAP Serialization

Show:
© 2014 Microsoft