NameScope::ContainsKey Method (String^)
.NET Framework (current version)
Returns whether a provided name already exists in this NameScope.
Assembly: WindowsBase (in WindowsBase.dll)
Parameters
- key
-
Type:
System::String^
The string key to find.
Return Value
Type: System::Booleantrue if the specified key identifies a name for an existing mapping in this NameScope. false if the specified key does not exist in the current NameScope.
| Exception | Condition |
|---|---|
| ArgumentNullException | key is null. |
Names in a XAML namescope must use a particular grammar that restricts the strings you might use for inputs of NameScope API. See XamlName Grammar.
.NET Framework
Available since 4.0
Available since 4.0
Show: