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

Definicja

Pobiera lub ustawia wartość skojarzona z określonym kluczem.

public:
 property TValue default[TKey] { TValue get(TKey key); void set(TKey key, TValue value); };
public TValue this[TKey key] { get; set; }
member this.Item('Key) : 'Value with get, set
Default Public Property Item(key As TKey) As TValue

Parametry

key
TKey

Klucz wartości do pobrania lub ustawienia.

Wartość właściwości

TValue

Wartość pary klucz/wartość w określonym indeksie.

Implementuje

Wyjątki

key to null.

Właściwość jest pobierana i key nie istnieje w kolekcji.

Dotyczy

Zobacz też