Sdílet prostřednictvím


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

Definice

Odebere první výskyt konkrétního objektu z ICollection<T>.

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Remove(System::Collections::Generic::KeyValuePair<TKey, TValue> item) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<TKey, TValue>>::Remove;
bool ICollection<KeyValuePair<TKey,TValue>>.Remove (System.Collections.Generic.KeyValuePair<TKey,TValue> item);
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 (item As KeyValuePair(Of TKey, TValue)) As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Remove

Parametry

item
KeyValuePair<TKey,TValue>

Objekt, který chcete odebrat z ICollection<T>.

Návraty

true, pokud item úspěšně odebral z ICollection<T>; jinak false. Tato metoda také vrátí false pokud item nebyl nalezen v původním ICollection<T>.

Implementuje

Platí pro