The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
HttpContentFormDataExtensions::ReadAsFormDataAsync Method
Namespace:
System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | ReadAsFormDataAsync(HttpContent^) | Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object. |
![]() ![]() | ReadAsFormDataAsync(HttpContent^, CancellationToken) | Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object. |
HttpContentFormDataExtensions::ReadAsFormDataAsync Method (HttpContent^)
Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object.
public: [ExtensionAttribute] static Task<NameValueCollection^>^ ReadAsFormDataAsync( HttpContent^ content )
Parameters
- content
-
Type:
System.Net.Http::HttpContent^
The content.
Return Value
Type: System.Threading.Tasks::Task<NameValueCollection^>^A task object representing the asynchronous operation.
HttpContentFormDataExtensions::ReadAsFormDataAsync Method (HttpContent^, CancellationToken)
Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object.
public: [ExtensionAttribute] static Task<NameValueCollection^>^ ReadAsFormDataAsync( HttpContent^ content, CancellationToken cancellationToken )
Parameters
- content
-
Type:
System.Net.Http::HttpContent^
The content.
- cancellationToken
-
Type:
System.Threading::CancellationToken
The token to cancel the operation.
Return Value
Type: System.Threading.Tasks::Task<NameValueCollection^>^A task object representing the asynchronous operation.
Show:

