ImmutableDictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Remove Méthode

Définition

Supprime la première occurrence d’un objet spécifique de ICollection<T>.

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

Paramètres

item
KeyValuePair<TKey,TValue>

Objet à supprimer de ICollection<T>.

Retours

true si item a été correctement supprimé de ICollection<T> ; sinon false. Cette méthode retourne également false si item est introuvable dans le ICollection<T> d'origine.

Implémente

S’applique à