RegisterName Method

ResourceDictionary::RegisterName Method (String^, Object^)

 

Not supported by this Dictionary implementation.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
virtual void RegisterName(
	String^ name,
	Object^ scopedElement
) sealed

Parameters

name
Type: System::String^

See Remarks.

scopedElement
Type: System::Object^

See Remarks.

Exception Condition
NotSupportedException

In all cases when this method is called.

The ResourceDictionary class does not support registering by name. It uses keys instead. The XAML namescope methods are implemented as inoperative versions in ResourceDictionary to make it clear that XAML names do not apply to resources.

Calling this method will cause a NotSupportedException to be thrown.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft