Ανάγνωση στα Αγγλικά Επεξεργασία

Κοινή χρήση μέσω


NameScope.Contains(KeyValuePair<String,Object>) Method

Definition

Determines whether the collection contains a specified item.

public bool Contains (System.Collections.Generic.KeyValuePair<string,object> item);

Parameters

item
KeyValuePair<String,Object>

The item to find in the collection, specified as a KeyValuePair<TKey,TValue> (key is String, value is Object).

Returns

true if the specified KeyValuePair<TKey,TValue> identifies an existing mapping in this NameScope . false if the specified KeyValuePair<TKey,TValue> does not exist in the current NameScope.

Implements

Exceptions

key is null.

Remarks

Generally you are only interested in whether a name is already defined in the XAML namescope, and what object reference value it is mapped to is immaterial. For this scenario, you can call ContainsKey instead.

Applies to

Προϊόν Εκδόσεις
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9