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

Definição

Remove a primeira ocorrência do elemento especificado do ICollection<T>.

 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> a ser removida do ICollection<T>.

Retornos

true se keyValuePair tiver sido removido com êxito do ICollection<T>; caso contrário, false. Esse método também retornará false se keyValuePair não tiver sido encontrado no ICollection<T>.

Implementações

Aplica-se a