Determines whether the Dictionary contains the specified key.
Namespace: System.Extensions.Collections.ObjectModelAssembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)
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 |
Parameters
- key
- Type: TKey
The key to locate.
Return Value
Type:
BooleanTrue if the Dictionary contains an element with the specified key,
false otherwise.
Implements
IDictionary<(Of <(<'TKey, TValue>)>)>..::..ContainsKey(TKey)
See Also