言語

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)。

返品

true 指定した KeyValuePair<TKey,TValue> がこの NameScope 内の既存のマッピングを識別する場合は a0/>。 false 指定した KeyValuePair<TKey,TValue> が現在の NameScopeに存在しない場合。

実装

例外

itemnullです。

注釈

一般に、名前が XAML 名前スコープで既に定義されているかどうか、およびマップされるオブジェクト参照値が重要でないかどうかにのみ関心があります。 このシナリオでは、代わりに ContainsKey を呼び出すことができます。

適用対象