C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System.Collections.Generic
Dictionary(TKey, TValue) Class
Dictionary(TKey, TValue) Methods
Add Method
Clear Method
ContainsKey Method
GetEnumerator Method
Remove Method
TryGetValue Method
Dictionary
TKey
,
TValue
ContainsKey Method
Determines whether the
Dictionary
TKey, TValue
contains the specified key.
Namespace:
System.Collections.Generic
Assembly:
mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
Copy
public
bool
ContainsKey
( TKey
key
)
Parameters
key
Type:
TKey
The key to locate in the
Dictionary
TKey, TValue
.
Return Value
Type:
Boolean
true if the
Dictionary
TKey, TValue
contains an element with the specified key; otherwise, false.
Exceptions
Exception
Condition
ArgumentNullException
key
is null.
See Also
Reference
Dictionary
TKey, TValue
Class
System.Collections.Generic Namespace