HierarchyInfo.OnRenaming Method (HierarchyRenameEventArgs)

 

Occurs when the Rename command is called from the user interface (UI) or programmatically.

Namespace:   Microsoft.Web.Management.Client
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

protected internal virtual void OnRenaming(
	HierarchyRenameEventArgs e
)

Application developers can set the T:Microsoft.Web.Management.Client.HierarchyRenameEventArgs.Cancel property to false to prevent the node name from changing.

The following example implements the OnRenaming method and writes the new name to the trace listener.

Return to top
Show: