Assembly: System.Net (in System.Net.dll)
Thetype exposes the following members.
|ContentLength||Gets the length of the content returned by the request. (Overrides WebResponse.ContentLength.)|
|ContentType||Gets the content type of the response. (Overrides WebResponse.ContentType.)|
|Cookies||Gets the cookies used to persist state information for the HTTP response.|
|Headers||Gets the headers that are associated with this response from the server. (Overrides WebResponse.Headers.)|
|Method||Gets the method that is used to return the response.|
|ResponseUri||Gets the URI of the Internet resource that responded to the request. (Overrides WebResponse.ResponseUri.)|
|StatusCode||Gets the status of the response.|
|StatusDescription||Gets the status description returned with the response.|
|SupportsHeaders||Gets a value that indicates if headers are supported. (Overrides WebResponse.SupportsHeaders.)|
|Close||Closes the response stream. (Overrides WebResponse.Close().)|
|Dispose()||Releases the resources used by the current instance of the WebResponse class. (Inherited from WebResponse.)|
|Dispose(Boolean)||Releases the unmanaged resources used by the and optionally releases the managed resources. (Overrides WebResponse.Dispose(Boolean).)|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetResponseStream||Gets the stream that is used to read the body of the response from the server. (Overrides WebResponse.GetResponseStream().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
This class contains support for HTTP-specific uses of the properties and methods of the WebResponse class. The class is used to build applications that send HTTP requests and receive HTTP responses.
You should never directly create an instance of the class. Instead, use the instance returned by a call to HttpWebRequest.BeginGetResponse.
You must call either the Close or Stream.Close method to close the response and release the connection for reuse. It is not necessary to call both the Close and the Stream.Close method, but doing so does not cause an error.
Common header information returned from the Internet resource is exposed as properties of the class. See the following table for a complete list. Headers for the request can be read from the Headers property as name/value pairs.
The following table shows the values that are available through properties of the class.
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
Windows Phone 8, Windows Phone OS 7.1
For more info, see App capabilities and hardware requirements for Windows Phone 8.