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

Definitie

Hiermee verwijdert u het eerste exemplaar van een specifiek sleutel-/waardepaar uit de 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

Parameters

keyValuePair
KeyValuePair<TKey,TValue>

De KeyValuePair<TKey,TValue> te verwijderen uit de ICollection<T>.

Retouren

trueindien keyValuePair is verwijderd uit de ICollection<T>; anders . false Deze methode retourneert false ook als keyValuePair deze niet is gevonden in het origineel ICollection<T>.

Implementeringen

Van toepassing op