Method Add
Add<T>(string, T)
Adds a new entry with the specified key and strongly-typed value. Throws if an entry with the same key already exists.
Declaration
public RouteQueryBuilder Add<T>(string key, T value) where T : IParsable<T>
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| T | value |
Returns
| Type | Description |
|---|---|
| RouteQueryBuilder |
Type Parameters
| Name | Description |
|---|---|
| T |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | An entry with the same key already exists. |