ReadOnlyDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Item[TKey] Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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é
É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.