HierarchyInfo.OnRenaming Method (HierarchyRenameEventArgs)

IIS 7.0
 

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)

abstract OnRenaming : 
        e:HierarchyRenameEventArgs -> unit
override OnRenaming : 
        e:HierarchyRenameEventArgs -> unit

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: