System.Net.WebRequest.GetResponseAsync Method

When overridden in a descendant class, returns a response to an Internet request as an asynchronous operation.

Syntax

public virtual System.Threading.Tasks.Task<WebResponse> GetResponseAsync ()

Returns

Returns System.Threading.Tasks.Task`1.

The task object representing the asynchronous operation.

Remarks

This operation will not block. The returned System.Threading.Tasks.Task`1 object will complete after a response to an Internet request is available.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 4.0.0.0