Method TryGetValues
TryGetValues(TKey, out TValueCollection)
Gets the keyed value collection associated with the specified key.
Declaration
bool TryGetValues(TKey key, out TValueCollection valueCollection)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | key | The key whose value collection to get. |
| TValueCollection | valueCollection | When this method returns, contains the keyed value collection associated with the specified key if the key was found; otherwise, null. |
Returns
| Type | Description |
|---|---|
| bool | true if the dictionary contains the specified key, otherwise false. |