SortedDictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Remove(KeyValuePair<TKey,TValue>) Metoda
Definicja
Usuwa pierwsze wystąpienie określonego elementu z ICollection<T> .Removes the first occurrence of the specified element from the 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
Parametry
- keyValuePair
- KeyValuePair<TKey,TValue>
KeyValuePair<TKey,TValue>Struktura do usunięcia z programu ICollection<T> .The KeyValuePair<TKey,TValue> structure to remove from the ICollection<T>.
Zwraca
true
Jeśli keyValuePair
program został pomyślnie usunięty z programu ICollection<T> ; w przeciwnym razie false
.true
if keyValuePair
was successfully removed from the ICollection<T>; otherwise, false
. Ta metoda zwraca również false
wartość keyValuePair
, jeśli nie została znaleziona w ICollection<T> .This method also returns false
if keyValuePair
was not found in the ICollection<T>.