HttpContentFormDataExtensions.ReadAsFormDataAsync Method
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Overload List
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. |
See Also
HttpContentFormDataExtensions Class
System.Net.Http Namespace
Return to top
HttpContentFormDataExtensions.ReadAsFormDataAsync Method (HttpContent)
Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object.
Syntax
public static Task<NameValueCollection> ReadAsFormDataAsync(
this HttpContent content
)
public:
[ExtensionAttribute]
static Task<NameValueCollection^>^ ReadAsFormDataAsync(
HttpContent^ content
)
static member ReadAsFormDataAsync :
content:HttpContent -> Task<NameValueCollection>
<ExtensionAttribute>
Public Shared Function ReadAsFormDataAsync (
content As HttpContent
) As Task(Of NameValueCollection)
Parameters
content
Type: System.Net.Http.HttpContentThe content.
Return Value
Type: System.Threading.Tasks.Task<NameValueCollection>
A task object representing the asynchronous operation.
Return to top
HttpContentFormDataExtensions.ReadAsFormDataAsync Method (HttpContent, CancellationToken)
Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object.
Syntax
public static Task<NameValueCollection> ReadAsFormDataAsync(
this HttpContent content,
CancellationToken cancellationToken
)
public:
[ExtensionAttribute]
static Task<NameValueCollection^>^ ReadAsFormDataAsync(
HttpContent^ content,
CancellationToken cancellationToken
)
static member ReadAsFormDataAsync :
content:HttpContent *
cancellationToken:CancellationToken -> Task<NameValueCollection>
<ExtensionAttribute>
Public Shared Function ReadAsFormDataAsync (
content As HttpContent,
cancellationToken As CancellationToken
) As Task(Of NameValueCollection)
Parameters
content
Type: System.Net.Http.HttpContentThe content.
cancellationToken
Type: System.Threading.CancellationTokenThe token to cancel the operation.
Return Value
Type: System.Threading.Tasks.Task<NameValueCollection>
A task object representing the asynchronous operation.
Return to top