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

Definition

Entfernt das angegebene Schlüssel-Wert-Paar aus der Auflistung.

 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 zu entfernende Option KeyValuePair<TKey,TValue> .

Gibt zurück

truewenn das Element erfolgreich entfernt wird; andernfalls . false Diese Methode gibt auch false zurück, wenn der Schlüssel im Original ICollection<T>nicht gefunden wurde.

Implementiert

Ausnahmen

Die Key Eigenschaft von keyValuePair ist null.

Gilt für:

Weitere Informationen