Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Remove(KeyValuePair<TKey,TValue>) Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Remove(KeyValuePair<TKey,TValue>) Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Remove(KeyValuePair<TKey,TValue>) Method

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);
Function Remove (keyValuePair As KeyValuePair(Of TKey, TValue)) As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Remove

Parametri

keyValuePair
KeyValuePair<TKey,TValue> KeyValuePair<TKey,TValue> 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>.

Implementazioni

Si applica a