Share via


HttpContentFormDataExtensions.ReadAsFormDataAsync Method

 

Namespace:   System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static ReadAsFormDataAsync(HttpContent)

Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object.

System_CAPS_pubmethodSystem_CAPS_static 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

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

Return Value

Type: System.Threading.Tasks.Task<NameValueCollection>

A task object representing the asynchronous operation.

Return to top