This documentation is archived and is not being maintained.

WebResponse Constructor (SerializationInfo, StreamingContext)

.NET Framework 1.1

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

[Visual Basic]
Protected Sub New( _
   ByVal serializationInfo As SerializationInfo, _
   ByVal streamingContext As StreamingContext _
protected WebResponse(
   SerializationInfo serializationInfo,
 StreamingContext streamingContext
protected: WebResponse(
   SerializationInfo* serializationInfo,
 StreamingContext streamingContext
protected function WebResponse(
   serializationInfo : SerializationInfo,
 streamingContext : StreamingContext


An instance of the SerializationInfo class containing the information required to serialize the new WebRequest instance.
An instance of the StreamingContext class indicating the source of the serialized stream associated with the new WebRequest instance.


Exception Type Condition
NotSupportedException Any attempt is made to access the constructor, when the constructor is not overridden in a descendant class.


When implemented by a descendant class, this constructor implements the ISerializable interface for the WebResponse descendant.


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

WebResponse Class | WebResponse Members | System.Net Namespace | WebResponse Constructor Overload List