Method ContainsKey
ContainsKey(TKey)
Determines whether the IDictionary<TKey,TValue> contains an element with the specified key.
Declaration
public bool ContainsKey(TKey key)
Parameters
Type | Name | Description |
---|---|---|
TKey | key | The key to locate in the IDictionary<TKey,TValue>. |
Returns
Type | Description |
---|---|
Boolean | true if the IDictionary<TKey,TValue> contains an element with the key; otherwise, false. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|