Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

View..::..Item Property

Gets or sets the value associated with a given key. When getting a value, if this key is not found in the collection, then an ArgumentException is thrown. When setting a value, the value replaces any existing value in the dictionary. When setting a value, the key must be within the range of keys being viewed.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public TValue this[
	TKey key
] { get; set; }
Public Default Property Item ( _
	key As TKey _
) As TValue
	Get
	Set
public:
property TValue default[TKey key] {
	TValue get (TKey key);
	void set (TKey key, TValue value);
}

Parameters

key
Type: TKey

Field Value

The value associated with the key.

Exceptions


ExceptionCondition
ArgumentExceptionA value is being retrieved, and the key is not present in the dictionary, or a value is being set, and the key is outside the range of keys being viewed by this View.