HierarchyInfo.OnRenamed Method (HierarchyRenameEventArgs)
Occurs when the Rename command is called from the user interface (UI) or programmatically and is not canceled from the OnRenaming method.
Assembly: Microsoft.Web.Management (in Microsoft.Web.Management.dll)
Parameters
- e
-
Type:
Microsoft.Web.Management.Client.HierarchyRenameEventArgs
A HierarchyRenameEventArgs that contains the event data.
To rename a node, you must set the SupportsRename property to true. Unless the program supports renaming, the displayed name will not change.
The following example implements the OnRenamed method and writes the old and new names to the trace listener.
Show: