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 _
)
[C#]
protected WebResponse(
   SerializationInfo serializationInfo,
 StreamingContext streamingContext
);
[C++]
protected: WebResponse(
   SerializationInfo* serializationInfo,
 StreamingContext streamingContext
);
[JScript]
protected function WebResponse(
   serializationInfo : SerializationInfo,
 streamingContext : StreamingContext
);

Parameters

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

Exceptions

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

Remarks

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

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

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

Show: