Gets or sets the element with the specified key.

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

Syntax

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

Parameters

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

Return Value

Type: TValue
The element with the specified key.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionkey is null.
System.Collections.Generic..::..KeyNotFoundExceptionThe property is retrieved and key is not found.
System..::..NotSupportedExceptionThe property is set and the IDictionary<(Of <(<'TKey, TValue>)>)> is read-only.

See Also