Determines whether the Dictionary<(Of <(<'TKey, TValue>)>)> contains the specified key.

Namespace: System.Collections.ObjectModel
Assembly: Elysium (in Elysium.dll) Version: 2.0.976.4 (2.0.976.4)

Syntax

C#
public bool ContainsKey(
	TKey key
)
Visual Basic
Public Function ContainsKey ( 
	key As TKey
) As Boolean

Parameters

key
Type: TKey
The key to locate in the Dictionary<(Of <(<'TKey, TValue>)>)>.

Return Value

Type: Boolean
true if the Dictionary<(Of <(<'TKey, TValue>)>)> contains an element with the specified key; otherwise, false.

Implements

IObservableDictionary<(Of <(<'TKey, TValue>)>)>..::..ContainsKey(TKey)
IDictionary<(Of <(<'TKey, TValue>)>)>..::..ContainsKey(TKey)

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionkey is null.

See Also