Determines whether the collection contains an element with the specified key.

Namespace:  Endeca.Data.Content.Collections
Assembly:  Endeca.Data.Content (in Endeca.Data.Content.dll) Version: 2.1.2.0 (2.1.2.0)

Syntax

C#
public bool Contains(
	TKey key
)
Visual Basic (Declaration)
Public Function Contains ( _
	key As TKey _
) As Boolean
Visual C++
public:
bool Contains(
	TKey key
)

Parameters

key
Type: TKey
The key to locate in the KeyedCollection<(Of <(TKey, TItem>)>)

Return Value

True if the KeyedCollection<(Of <(TKey, TItem>)>) contains an element with the specified key; otherwise, false.

Exceptions

ExceptionCondition
System..::.ArgumentNullException Key is null.

See Also