ConcurrentDictionary<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 ou définit la valeur associée à la clé spécifiée.
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
Paramètres
- key
- TKey
Clé de la valeur à obtenir ou à définir.
Valeur de propriété
Valeur de la paire clé/valeur à l'index spécifié.
Implémente
Exceptions
key
a la valeur null
.
La propriété est récupérée et key
n’existe pas dans la collection.
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Envoyer et afficher des commentaires pour