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

Definitie

Hiermee verwijdert u een sleutel en waarde uit de woordenlijst.

 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

Parameters

keyValuePair
KeyValuePair<TKey,TValue>

De KeyValuePair<TKey,TValue> structuur die de sleutel en waarde aangeeft die uit de Dictionary<TKey,TValue>sleutel en waarde moeten worden verwijderd.

Retouren

trueals de sleutel en waarde die worden vertegenwoordigd doorkeyValuePair, zijn gevonden en verwijderd; anders. false Deze methode retourneert false als keyValuePair deze niet wordt gevonden in de ICollection<T>.

Implementeringen

Van toepassing op