Determines whether the IDictionary<(Of <(<'TKey, TValue>)>)> contains an element with the specified key.

Namespace: CodeSmith.Engine
Assembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

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

Parameters

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

Return Value

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

Implements

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

Exceptions

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

See Also