Returns a System.Net.WebResponse that contains a response to the specified pending Internet request.
- asyncResult
- The IAsyncResult object that hold the state information for the asynchronous operation.
A System.Net.WebResponse that contains a response to the Internet request referenced by asyncResult .
Type Reason ArgumentNullException asyncResult is null. ArgumentException asyncResult was not returned by the current instance from a call to WebRequest.BeginGetResponse(AsyncCallback, object). InvalidOperationException This method was called previously using asyncResult.
-or-
The HttpWebRequest.ContentLength property of the current instance is greater than 0 but the data has not been written to the request stream.
System.Net.WebException HttpWebRequest.Abort was previously called.
-or-
An error occurred while processing the request.
Note:This method completes an asynchronous request for an Internet resource that was started by calling HttpWebRequest.BeginGetResponse(AsyncCallback, object).
This method overrides WebRequest.EndGetResponse(IAsyncResult).
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0