NameScope.Contains(KeyValuePair<String,Object>) 메서드

정의

컬렉션에 지정된 항목이 포함되는지 여부를 확인합니다.

public:
 virtual bool Contains(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> item);
public bool Contains (System.Collections.Generic.KeyValuePair<string,object> item);
abstract member Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool
override this.Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool
Public Function Contains (item As KeyValuePair(Of String, Object)) As Boolean

매개 변수

item
KeyValuePair<String,Object>

KeyValuePair<TKey,TValue>(키는 String, 값은 Object)로 지정된, 컬렉션에서 찾을 항목입니다.

반환

지정한 KeyValuePair<TKey,TValue>NameScope의 기존 매핑을 식별하면 true입니다. 지정한 KeyValuePair<TKey,TValue>가 현재 NameScope에 존재하지 않으면 false입니다.

구현

예외

key이(가) null인 경우

설명

일반적으로 이름이 XAML 이름 범위에 이미 정의되어 있는지 여부와 매핑되는 개체 참조 값이 비물질인지에만 관심이 있습니다. 이 시나리오에서는 를 대신 호출 ContainsKey 할 수 있습니다.

적용 대상