ReadOnlyDictionary<TKey,TValue>.IDictionary.Add(Object, Object) Méthode
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.
Lève une NotSupportedException exception dans tous les cas.
virtual void System.Collections.IDictionary.Add(System::Object ^ key, System::Object ^ value) = System::Collections::IDictionary::Add;
void IDictionary.Add(object key, object value);
abstract member System.Collections.IDictionary.Add : obj * obj -> unit
override this.System.Collections.IDictionary.Add : obj * obj -> unit
Sub Add (key As Object, value As Object) Implements IDictionary.Add
Paramètres
- key
- Object
Clé de l’élément à ajouter.
- value
- Object
Valeur de l’élément à ajouter.
Implémente
Exceptions
Dans tous les cas.
Remarques
Ce membre est une implémentation explicite de membre d’interface. Elle ne peut être utilisée que lorsque l’instance ReadOnlyDictionary<TKey,TValue> est convertie en IDictionary interface. L’interface IDictionary spécifie que la Add méthode doit lever une NotSupportedException exception si la collection qui implémente l’interface est en lecture seule.