Specifies that a parameter of a controller method will receive a of HTML form data, obtained by deserializing a request body with a content type of application/x-www-form-urlencoded
.
The received collection will be read-only.
This class cannot be inherited.
InheritanceFormDataAttribute
Namespace: EmbedIO.WebApi Syntaxpublic sealed class FormDataAttribute : Attribute, INonNullRequestDataAttribute<WebApiController, NameValueCollection>
Methods GetRequestDataAsync(WebApiController, String)
Asynchronously obtains data from a controller's context.
Declarationpublic Task<NameValueCollection> GetRequestDataAsync(WebApiController controller, string parameterName)
Parameters Type Name Description WebApiController controller String parameterName
The name of the parameter that has to receive the data.
Returns Type Description Task<NameValueCollection>a whose result will be the data to pass as a parameter to a controller method.
Implements See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4