Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Remove Methode

Definition

Entfernt einen Schlüssel und einen Wert aus dem Wörterbuch.

 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

Parameter

keyValuePair
KeyValuePair<TKey,TValue>

Die KeyValuePair<TKey,TValue>-Struktur, die den Schlüssel und den Wert darstellt, die aus dem Dictionary<TKey,TValue> entfernt werden sollen.

Gibt zurück

true, wenn der durch das keyValuePair dargestellte Schlüssel und Wert gefunden und entfernt wurden, andernfalls false. Diese Methode gibt auch dann false zurück, wenn keyValuePair nicht im ursprünglichen ICollection<T> gefunden wurde.

Implementiert

Gilt für: