ImmutableDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Remove Método

Definição

Remove o elemento com a chave especificada do dicionário genérico.

 virtual bool System.Collections.Generic.IDictionary<TKey,TValue>.Remove(TKey key) = System::Collections::Generic::IDictionary<TKey, TValue>::Remove;
bool IDictionary<TKey,TValue>.Remove(TKey key);
abstract member System.Collections.Generic.IDictionary<TKey,TValue>.Remove : 'Key -> bool
override this.System.Collections.Generic.IDictionary<TKey,TValue>.Remove : 'Key -> bool
Function Remove (key As TKey) As Boolean Implements IDictionary(Of TKey, TValue).Remove

Parâmetros

key
TKey

A chave do elemento para remover.

Devoluções

true se o elemento for removido com sucesso; caso contrário, false. Este método também devolve false se key não foi encontrado no dicionário genérico original.

Implementações

Exceções

key é null.

Aplica-se a