Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Remove Método

Definición

Quita una clave y un valor del diccionario.

 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

Parámetros

keyValuePair
KeyValuePair<TKey,TValue>

Estructura KeyValuePair<TKey,TValue> que representa la clave y el valor que se van a quitar de .Dictionary<TKey,TValue>

Devoluciones

true es si la clave y el valor representados por keyValuePair se encuentran y quitan correctamente; de lo contrario, falsees . Este método devuelve false si keyValuePair no se encuentra en .ICollection<T>

Implementaciones

Se aplica a