Method ContainsKey
ContainsKey(TAlternateKey)
Determines whether the dictionary contains the specified alternate key with a value that is still available.
Declaration
public bool ContainsKey(TAlternateKey key)
Parameters
| Type | Name | Description |
|---|---|---|
| TAlternateKey | key | The alternate key to locate. |
Returns
| Type | Description |
|---|---|
| bool |
Exceptions
| Type | Condition |
|---|---|
| ObjectDisposedException | The dictionary has been disposed. |
ContainsKey(TAlternateKey, out TKey)
Determines whether the dictionary contains the specified alternate key with a value that is still available.
Declaration
public bool ContainsKey(TAlternateKey key, out TKey actualKey)
Parameters
| Type | Name | Description |
|---|---|---|
| TAlternateKey | key | The alternate key to locate. |
| TKey | actualKey | When this method returns, contains the key instance stored in the dictionary if the key was found; otherwise the default value. |
Returns
| Type | Description |
|---|---|
| bool |
Exceptions
| Type | Condition |
|---|---|
| ObjectDisposedException | The dictionary has been disposed. |