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

Definizione

Rimuove una chiave e un valore dal dizionario.

 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> che rappresenta la chiave e il valore da rimuovere da Dictionary<TKey,TValue>.

Restituisce

Boolean

true se la chiave e il valore rappresentati da keyValuePair vengono trovati e rimossi; in caso contrario, false. Questo metodo restituisce anche false se keyValuePair non viene trovato in ICollection<T>.

Implementazioni

Si applica a