ReadOnlyDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Item[TKey] Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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
key
adalah null
.
Properti diambil dan key
tidak ditemukan.
Properti diatur.
Berlaku untuk
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.