Поделиться через


WebRequest.GetResponseAsync Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

Syntax

Public Overridable Function GetResponseAsync As Task(Of WebResponse)
public virtual Task<WebResponse> GetResponseAsync()

Return Value

Type: System.Threading.Tasks..::.Task<(Of <(WebResponse>)>)
Returns the Task<(Of <(TResult>)>) representing the asynchronous operation.

Version Information

Windows Phone OS

Supported in: 8.1

See Also

Reference

WebRequest Class

System.Net Namespace