Determines whether the Dictionary
contains an element with the specified key.
Namespace: MonoSoftware.Core.CollectionsAssembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)
Syntax
C# |
---|
public virtual bool ContainsKey(
TKey key
) |
Visual Basic |
---|
Public Overridable Function ContainsKey (
key As TKey
) As Boolean |
Visual C++ |
---|
public:
virtual bool ContainsKey(
TKey key
) |
F# |
---|
abstract ContainsKey :
key : 'TKey -> bool
override ContainsKey :
key : 'TKey -> bool |
Parameters
- key
- Type: TKey
The key to locate in the Dictionary.
Return Value
Type:
Booleantrue if the Dictionary contains
an element with the key; otherwise, false.
Implements
IDictionary<(Of <(<'TKey, TValue>)>)>..::..ContainsKey(TKey)See Also