Method ContainsKey
ContainsKey(String)
Determines whether the specified key exists in the dictionary
represented by this instance.
Declaration
public bool ContainsKey(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| String | key | The key to locate. |
Returns
| Type | Description |
|---|---|
| Boolean | true if the dictionary contains an element with
the specified key, otherwise false. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | The key
is null. |