Method Reserve
Reserve(string)
Reserves the specified key without adding an entry, so that a subsequent AddQuery(RouteQuery) cannot add an entry with a matching key. Intended for optional named parameters whose current value is null.
Declaration
public void Reserve(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The collection is not in the Building state. |
| ArgumentException | The key has already been reserved. |