ReadOnlyDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Item[TKey] Właściwość

Definicja

Pobiera element, który ma określony klucz.

property TValue System::Collections::Generic::IDictionary<TKey,TValue>::Item[TKey] { TValue get(TKey key); void set(TKey key, TValue value); };
TValue System.Collections.Generic.IDictionary<TKey,TValue>.Item[TKey key] { get; set; }
member this.System.Collections.Generic.IDictionary<TKey,TValue>.Item('Key) : 'Value with get, set
 Property Item(key As TKey) As TValue Implements IDictionary(Of TKey, TValue).Item

Parametry

key
TKey

Klucz elementu do pobrania lub ustawienia.

Wartość właściwości

TValue

Element, który ma określony klucz.

Implementuje

Wyjątki

key to null.

Właściwość jest pobierana i key nie można jej odnaleźć.

Właściwość jest ustawiona.

Dotyczy