Bagikan melalui


ReadOnlyDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Item[TKey] Properti

Definisi

Mendapatkan elemen yang memiliki kunci yang ditentukan.

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

Parameter

key
TKey

Kunci elemen untuk mendapatkan atau mengatur.

Nilai Properti

TValue

Elemen yang memiliki kunci yang ditentukan.

Penerapan

Pengecualian

keyadalah null.

Properti diambil dan key tidak ditemukan.

Properti diatur.

Berlaku untuk