Bewerken

Delen via


ResourceDictionary.RegisterName(String, Object) Method

Definition

Not supported by this Dictionary implementation.

public:
 virtual void RegisterName(System::String ^ name, System::Object ^ scopedElement);
public void RegisterName (string name, object scopedElement);
abstract member RegisterName : string * obj -> unit
override this.RegisterName : string * obj -> unit
Public Sub RegisterName (name As String, scopedElement As Object)

Parameters

name
String

Not supported.

scopedElement
Object

Not supported.

Implements

Exceptions

In all cases when this method is called.

Remarks

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.

Applies to