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.

適用於

另請參閱