ReadOnlyDictionary<TKey,TValue>.IDictionary.Remove(Object) Méthode

Définition

Lève une NotSupportedException exception dans tous les cas.

 virtual void System.Collections.IDictionary.Remove(System::Object ^ key) = System::Collections::IDictionary::Remove;
void IDictionary.Remove(object key);
abstract member System.Collections.IDictionary.Remove : obj -> unit
override this.System.Collections.IDictionary.Remove : obj -> unit
Sub Remove (key As Object) Implements IDictionary.Remove

Paramètres

key
Object

Clé de l’élément à supprimer.

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 Remove méthode doit lever une NotSupportedException exception si la collection qui implémente l’interface est en lecture seule.

S’applique à