FrameworkElement.UnregisterName(String) 方法

定义

简化对 NameScope 注销方法的访问。Simplifies access to the NameScope de-registration method.

public:
 void UnregisterName(System::String ^ name);
public void UnregisterName (string name);
member this.UnregisterName : string -> unit
Public Sub UnregisterName (name As String)

参数

name
String

要从当前范围中移除的名称-对象对的名称。Name of the name-object pair to remove from the current scope.

注解

如果打算用同一名称重新注册另一个元素,则只需取消注册名称。You only need to un-register names if you intend to re-register another element with that same name.

适用于

另请参阅