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

Définition

Supprime la première occurrence de l’élément spécifié du ICollection<T>.

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System::Collections::Generic::KeyValuePair<TKey, TValue> keyValuePair) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<TKey, TValue>>::Remove;
bool ICollection<KeyValuePair<TKey,TValue>>.Remove(System.Collections.Generic.KeyValuePair<TKey,TValue> keyValuePair);
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 (keyValuePair As KeyValuePair(Of TKey, TValue)) As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Remove

Paramètres

keyValuePair
KeyValuePair<TKey,TValue>

Structure KeyValuePair<TKey,TValue> à supprimer du ICollection<T>.

Retours

true si keyValuePair elle a été correctement supprimée du ICollection<T>; sinon, false. Cette méthode retourne false également si keyValuePair elle n’a pas été trouvée dans le ICollection<T>.

Implémente

S’applique à