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

Definicja

Usuwa klucz i wartość ze słownika.

 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

Parametry

keyValuePair
KeyValuePair<TKey,TValue>

Struktura KeyValuePair<TKey,TValue> reprezentująca klucz i wartość do usunięcia z elementu Dictionary<TKey,TValue>.

Zwraca

truejeśli klucz i wartość reprezentowana przez element keyValuePair zostanie pomyślnie znaleziony i usunięty; w przeciwnym razie . false Ta metoda zwraca wartość false , jeśli keyValuePair nie zostanie znaleziona w obiekcie ICollection<T>.

Implementuje

Dotyczy