Compartilhar via


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

Definição

Determina se o ICollection<T> contém uma chave e valor específicos.

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System::Collections::Generic::KeyValuePair<TKey, TValue> keyValuePair) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<TKey, TValue>>::Contains;
bool ICollection<KeyValuePair<TKey,TValue>>.Contains (System.Collections.Generic.KeyValuePair<TKey,TValue> keyValuePair);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
Function Contains (keyValuePair As KeyValuePair(Of TKey, TValue)) As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Contains

Parâmetros

keyValuePair
KeyValuePair<TKey,TValue>

A estrutura KeyValuePair<TKey,TValue> para localizar no ICollection<T>.

Retornos

true se keyValuePair for encontrado no ICollection<T>; caso contrário, false.

Implementações

Aplica-se a

Confira também