Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ResourceDictionary.RegisterName Method (String, Object)

 

Not supported by this Dictionary implementation.

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

abstract RegisterName : 
        name:string *
        scopedElement:Object -> unit
override RegisterName : 
        name:string *
        scopedElement:Object -> unit

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:
© 2017 Microsoft