Method AddQuery
AddQuery(RouteQuery)
Adds all entries from the specified RouteQuery and transitions the collection to the Consuming state. Throws if any entry's key has already been reserved by Add<T>(string, T) or Reserve(string).
Declaration
public void AddQuery(RouteQuery query)
Parameters
| Type | Name | Description |
|---|---|---|
| RouteQuery | query |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The collection is not in the Building state. |
| ArgumentException | An entry's key matches a key that has already been reserved. |