Partager via


HttpClientExtensions.PostAsync Method

Include Protected Members
Include Inherited Members

Sends a POST request as an asynchronous operation, with a specified value serialized using the given formatter.

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 methodStatic member PostAsync<T>(HttpClient, String, T, MediaTypeFormatter) Sends a POST request as an asynchronous operation, with a specified value serialized using the given formatter.
Public methodStatic member PostAsync<T>(HttpClient, String, T, MediaTypeFormatter, String) Sends a POST request as an asynchronous operation, with a specified value serialized using the given formatter and media type string.
Public methodStatic member PostAsync<T>(HttpClient, String, T, MediaTypeFormatter, CancellationToken) Sends a POST request as an asynchronous operation, with a specified value serialized using the given formatter. Includes a cancellation token to cancel the request.
Public methodStatic member PostAsync<T>(HttpClient, String, T, MediaTypeFormatter, MediaTypeHeaderValue, CancellationToken) Sends a POST request as an asynchronous operation, with a specified value serialized using the given formatter and media type.
Public methodStatic member PostAsync<T>(HttpClient, String, T, MediaTypeFormatter, String, CancellationToken) Sends a POST request as an asynchronous operation, with a specified value serialized using the given formatter and media type string. Includes a cancellation token to cancel the request.

Top

See Also

Reference

HttpClientExtensions Class

System.Net.Http Namespace