Constructor RouteQuery
RouteQuery(params ReadOnlySpan<(string Name, string Value)>)
Initializes a new instance of the RouteQuery struct with the specified pre-formatted string parameters. If duplicate keys are provided, the last occurrence wins. Use RouteQueryBuilder to compose a query from strongly-typed values.
Declaration
public RouteQuery(params ReadOnlySpan<(string Name, string Value)> parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<(string Name, string Value)> | parameters | The query parameters to add. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | A parameter name is null or empty. |