ReadOnlyDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Contains Método

Definição

Determina se a coleção contém um valor específico.

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

Parâmetros

item
TKey

O objeto a localizar na coleção.

Devoluções

true se item for encontrado na coleção; caso contrário, false.

Implementações

Observações

Este membro é uma implementação explícita de membro de interface. Só pode ser usado quando a ReadOnlyDictionary<TKey,TValue>.KeyCollection instância é transmitida para uma ICollection<T> interface.

Aplica-se a