ContainsKey Method

MS Activities Extensions

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

Namespace: Microsoft.Activities.Extensions
Assembly: Microsoft.Activities.Extensions (in Microsoft.Activities.Extensions.dll) Version: 2.0.6.9 (2.0.6.9)

Syntax

C#
public bool ContainsKey(
	string key
)
Visual Basic
Public Function ContainsKey ( _
	key As String _
) As Boolean
Visual C++
public:
virtual bool ContainsKey(
	String^ key
) sealed

Parameters

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

Return Value

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