ReadOnlyDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Contains 메서드

정의

컬렉션에 특정 값이 있는지 여부를 확인합니다.

 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

매개 변수

item
TKey

컬렉션에서 찾을 개체입니다.

반환

Boolean

item이 컬렉션에 있으면 true이고, 그렇지 않으면 false입니다.

구현

설명

이 멤버는 명시적 인터페이스 멤버 구현이며, ReadOnlyDictionary<TKey,TValue>.KeyCollection 인스턴스가 ICollection<T> 인터페이스로 캐스팅된 경우에만 사용할 수 있습니다.

적용 대상