HierarchyInfo.OnRenaming Method (HierarchyRenameEventArgs)
Occurs when the Rename command is called from the user interface (UI) or programmatically.
Assembly: Microsoft.Web.Management (in Microsoft.Web.Management.dll)
Parameters
- e
-
Type:
Microsoft.Web.Management.Client.HierarchyRenameEventArgs
A HierarchyRenameEventArgs that contains the event data
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.
Show: