共用方式為


HttpClient.SendAsync Method

Sends an HTTP request 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 SendAsync(HttpRequestMessage) Sends an HTTP request as an asynchronous operation.
Public method SendAsync(HttpRequestMessage, HttpCompletionOption) Sends an HTTP request with an HTTP completion option as an asynchronous operation.
Public method SendAsync(HttpRequestMessage, CancellationToken) Sends an HTTP request with a cancellation token as an asynchronous operation. (Overrides HttpMessageInvoker.SendAsync(HttpRequestMessage, CancellationToken).)
Public method SendAsync(HttpRequestMessage, HttpCompletionOption, CancellationToken) Sends an HTTP request with an HTTP completion option and cancellation token as an asynchronous operation.

Top

See Also

Reference

HttpClient Class

System.Net.Http Namespace