Enum UnexpectedParameterBehavior
Defines how query-binding middleware handles query-string parameters that are not declared in the binding descriptor.
Namespace: NanoRoute
Assembly: NanoRoute.dll
Syntax
public enum UnexpectedParameterBehavior
Examples
builder.ConfigureQueryParsing(config => config with
{
UnexpectedParameterBehavior = UnexpectedParameterBehavior.Reject
});
Fields
| Name | Description |
|---|---|
| Ignore | Ignore undeclared query-string parameters. |
| Reject | Reject undeclared query-string parameters with a |