Click or drag to resize

WebExtensionsGetPostDataAsync Method

Asynchronously gets a collection of uploaded post data from an HttpRequestMessage.

Namespace: GSF.Web
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax
public static Task<PostData> GetPostDataAsync(
	this HttpRequestMessage request,
	CancellationToken cancellationToken
)
View Source

Parameters

request  HttpRequestMessage
HttpRequestMessage request data that contains form data and/or uploaded files.
cancellationToken  CancellationToken
The token to monitor for cancellation requests.

Return Value

TaskPostData
Parsed post data.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpRequestMessage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also