RegisterName Method

ResourceDictionary.RegisterName Method (String, Object)


Not supported by this Dictionary implementation.

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

Public Sub RegisterName (
	name As String,
	scopedElement As Object


Type: System.String

See Remarks.

Type: System.Object

See Remarks.

Exception Condition

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
© 2016 Microsoft