Gets the element with the specified key.

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

Syntax

C#
public TItem this[
	TKey key
] { get; }
Visual Basic (Declaration)
Public ReadOnly Default Property Item ( _
	key As TKey _
) As TItem
Visual C++
public:
property TItem default[TKey key] {
	TItem get (TKey key);
}

Parameters

key
Type: TKey
The key of the element to get.

Return Value

The element with the specified key. If an element with the specified key is not found, an exception is thrown.

Exceptions

ExceptionCondition
System..::.ArgumentNullException Key is null.
System.Collections.Generic..::.KeyNotFoundException An element with the specified key does not exist in the collection.

See Also