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

Definição

Remove uma chave e o valor do dicionário.

 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>

A estrutura KeyValuePair<TKey,TValue> que representa a chave e o valor a serem removidos de Dictionary<TKey,TValue>.

Retornos

true se a chave e o valor representados por keyValuePair forem encontrados e removidos com êxito; caso contrário, false. Esse método retorna false se keyValuePair não foi encontrado no ICollection<T>.

Implementações

Aplica-se a