[This is preliminary documentation and is subject to change.]
Determines whether the IDictionary<(Of <(<'TKey, TValue>)>)> contains an element with the specified key.
Namespace: Tools.CollectionsT.GenericTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public bool ContainsKey( TKey key ) |
| Visual Basic |
|---|
Public Function ContainsKey ( _ key As TKey _ ) As Boolean |
| Visual C++ |
|---|
public: virtual bool ContainsKey( TKey key ) sealed |
| F# |
|---|
abstract ContainsKey : key:'TKey -> bool override ContainsKey : key:'TKey -> bool |
| JScript |
|---|
public final function ContainsKey( key : TKey ) : boolean |
Parameters
- key
- Type: TKey
The key to locate in the IDictionary<(Of <(<'TKey, TValue>)>)>.
Return Value
true if the IDictionary<(Of <(<'TKey, TValue>)>)> contains an element with the key; otherwise, false.Implements
IDictionary<(Of <(<'TKey, TValue>)>)>..::..ContainsKey(TKey)
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | key is null. |