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

Définition

Supprime l'élément avec la clé spécifiée d'IDictionary<TKey,TValue>.

 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 également false si key est introuvable dans le IDictionary<TKey,TValue> d'origine.

Implémente

Exceptions

key a la valeur null.

S’applique à

Voir aussi