ImmutableDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Remove Méthode

Définition

Supprime l’élément avec la clé spécifiée du dictionnaire générique.

 virtual bool System.Collections.Generic.IDictionary<TKey,TValue>.Remove(TKey key) = System::Collections::Generic::IDictionary<TKey, TValue>::Remove;
bool IDictionary<TKey,TValue>.Remove (TKey key);
abstract member System.Collections.Generic.IDictionary<TKey,TValue>.Remove : 'Key -> bool
override this.System.Collections.Generic.IDictionary<TKey,TValue>.Remove : 'Key -> bool
Function Remove (key As TKey) As Boolean Implements IDictionary(Of TKey, TValue).Remove

Paramètres

key
TKey

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

Retours

true si la suppression de l'élément réussit ; sinon, false. Cette méthode retourne false également si key a été introuvable dans le dictionnaire générique d’origine.

Implémente

Exceptions

key a la valeur null.

S’applique à