Class QueryDataAttribute
Specifies that a parameter of a controller method will receive a
The received collection will be read-only.
This class cannot be inherited.
Implements
Namespace: EmbedIO.WebApi
Syntax
public sealed class QueryDataAttribute : Attribute, INonNullRequestDataAttribute<WebApiController, NameValueCollection>
Methods
GetRequestDataAsync(WebApiController, String)
Asynchronously obtains data from a controller's context.
Declaration
public 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 |
Implements
See Also
INonNullRequestDataAttribute<TController, TData>