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

System.Net.WebRequest.EndGetResponse Method

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

public virtual WebResponse EndGetResponse (IAsyncResult asyncResult)

Parameters

asyncResult
A IAsyncResult object that references a pending request that was started with WebRequest.BeginGetResponse(AsyncCallback, object). [Edit]

Returns

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

Exceptions

TypeReason
NotSupportedExceptionThis method is not overridden in the derived class. [Edit]
ArgumentExceptionasyncResult was not returned by a call to WebRequest.BeginGetResponse(AsyncCallback, object). [Edit]
ArgumentNullExceptionasyncResult is a null reference. [Edit]
InvalidOperationException

The WebRequest.ContentLength property of the current instance is greater than zero but no data has been written to the request stream.

-or-

This method was called previously using asyncResult.

[Edit]
System.Net.WebExceptionAn error occurred while processing the request. [Edit]

Remarks

Operation
As described above.

The System.Net.WebRequest class is abstract and does not provide an implementation for this method. This method throws NotSupportedException.

Note to Inheritors
This method must be overridden by classes that inherit from System.Net.WebRequest to provide this functionality.

Usage
Use this method to complete an asynchronous request for an Internet resource that was started with the WebRequest.BeginGetResponse(AsyncCallback, object) method.

[Edit]

Requirements

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