Method Add
Add<T>(string, T)
Adds a parameter entry and reserves the specified key so that a subsequent AddQuery(RouteQuery) cannot add a conflicting entry.
Declaration
public void Add<T>(string key, T value) where T : notnull, IParsable<T>
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| T | value |
Type Parameters
| Name | Description |
|---|---|
| T |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The collection is not in the Building state. |
| ArgumentException | The key has already been reserved. |