Gets or sets the value associated with the specified key.

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

Syntax

C#
public TValue this[
	TKey key
] { get; set; }
Visual Basic
Public Default Property Item ( 
	key As TKey
) As TValue
	Get
	Set

Parameters

key
Type: TKey
The key of the value to get or set.

Return Value

Type: TValue
The value associated with the specified key. If the specified key is not found, a get operation throws a KeyNotFoundException, and a set operation creates a new element with the specified key.

Implements

IObservableDictionary<(Of <(<'TKey, TValue>)>)>..::..Item[([( TKey])])
IDictionary<(Of <(<'TKey, TValue>)>)>..::..Item[([( TKey])])

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionkey is null.
System.Collections.Generic..::..KeyNotFoundExceptionThe property is retrieved and key does not exist in the collection.

See Also