NameScope::Remove Method (String^)
.NET Framework (current version)
Removes a mapping for a specified name from the collection.
Assembly: WindowsBase (in WindowsBase.dll)
Parameters
- key
-
Type:
System::String^
The string key, which is the name of the XAML namescope mapping to remove.
Return Value
Type: System::Booleantrue if item was successfully removed from the collection, otherwise false. Also returns false if the item was not found in the collection.
Implements
IDictionary<TKey, TValue>::Remove(TKey)This method basically wraps UnregisterName, returning false in cases that otherwise would have raised exceptions in UnregisterName.
.NET Framework
Available since 4.0
Available since 4.0
Show: