ReadOnlyDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Item[TKey] Propriété

Définition

Obtient l'élément ayant la clé spécifiée.

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

Paramètres

key
TKey

Clé de l'élément à obtenir ou définir.

Valeur de propriété

TValue

Élément qui contient la clé spécifiée.

Implémente

Exceptions

key a la valeur null.

La propriété est récupérée et key est introuvable.

La propriété est définie.

S’applique à