Mono Class Library: System.Net.HttpWebRequest Overview | Members

System.Net.HttpWebRequest.EndGetResponse Method

Returns a System.Net.WebResponse that contains a response to the specified pending Internet request. [Edit]

public override WebResponse EndGetResponse (IAsyncResult asyncResult)

Parameters

asyncResult
The IAsyncResult object that hold the state information for the asynchronous operation. [Edit]

Returns

A System.Net.WebResponse that contains a response to the Internet request referenced by asyncResult . [Edit]

Exceptions

TypeReason
ArgumentNullExceptionasyncResult is null. [Edit]
ArgumentExceptionasyncResult was not returned by the current instance from a call to WebRequest.BeginGetResponse(AsyncCallback, object). [Edit]
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.

[Edit]
System.Net.WebException

HttpWebRequest.Abort was previously called.

-or-

An error occurred while processing the request.

[Edit]

Remarks

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).

[Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0