SortedDictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Remove Metodo

Definizione

Rimuove dall'interfaccia ICollection<T> la prima occorrenza dell'elemento specificato.

 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

Parametri

keyValuePair
KeyValuePair<TKey,TValue>

Struttura KeyValuePair<TKey,TValue> da rimuovere dall'interfaccia ICollection<T>.

Restituisce

true se keyValuePair è stato rimosso correttamente da ICollection<T>; in caso contrario, false. Questo metodo restituisce anche false se keyValuePair non è stato trovato nell'oggetto ICollection<T>.

Implementazioni

Si applica a