NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

WebResponse Class

A response from a Uniform Resource Indentifier (URI). This is an abstract class.

Object
   WebResponse

[Visual Basic]
MustInherit Public Class WebResponse
[C#]
public abstract class WebResponse
[C++]
public __gc __abstract class WebResponse
[JScript]
public abstract class WebResponse

Remarks

The WebResponse class is an abstract base class from which protocol-specific classes are derived. Applications can use the WebResponse class to handle responses in a protocol-agnostic manner. The WebResponse class can be used to access any resource on the network that is addressable with a Uniform Resource Identifier (URI), such as http://www.microsoft.com/ .

Client applications should never create WebResponse objects directly, they should be created by calling the GetResponse method on a WebRequest instance.

Notes to Inheritors: When you inherit from WebResponse, you must override the following members: Status, StatusDescription, ContentLength, ContentType, GetResponseStream, ResponseURI, and Headers.

Requirements

Namespace: System.Net

Assembly: System.net.dll

See Also

WebResponse Members | System.Net Namespace