Compartir a través de


HttpClient.GetAsync Method

Sends a GET request to the specified Uri as an asynchronous operation.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method GetAsync(String) Sends a GET request to the specified Uri as an asynchronous operation.
Public method GetAsync(Uri) Sends a GET request to the specified Uri as an asynchronous operation.
Public method GetAsync(String, HttpCompletionOption) Sends a GET request to the specified Uri with an HTTP completion option as an asynchronous operation.
Public method GetAsync(String, CancellationToken) Sends a GET request to the specified Uri with a cancellation token as an asynchronous operation.
Public method GetAsync(Uri, HttpCompletionOption) Sends a GET request to the specified Uri with an HTTP completion option as an asynchronous operation.
Public method GetAsync(Uri, CancellationToken) Sends a GET request to the specified Uri with a cancellation token as an asynchronous operation.
Public method GetAsync(String, HttpCompletionOption, CancellationToken) Sends a GET request to the specified Uri with an HTTP completion option and a cancellation token as an asynchronous operation.
Public method GetAsync(Uri, HttpCompletionOption, CancellationToken) Sends a GET request to the specified Uri with an HTTP completion option and a cancellation token as an asynchronous operation.

Top

See Also

Reference

HttpClient Class

System.Net.Http Namespace