Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Remove(KeyValuePair<TKey,TValue>) Metodo
Definizione
Rimuove una chiave e un valore dal dizionario.Removes a key and value from the dictionary.
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>.The KeyValuePair<TKey,TValue> structure representing the key and value to remove from the Dictionary<TKey,TValue>.
Restituisce
true
se la chiave e il valore rappresentati da keyValuePair
vengono trovati e rimossi; in caso contrario, false
.true
if the key and value represented by keyValuePair
is successfully found and removed; otherwise, false
. Questo metodo restituisce anche false
se keyValuePair
non viene trovato in ICollection<T>.This method returns false
if keyValuePair
is not found in the ICollection<T>.