HierarchyRenameEventArgs Class
Provides data for the HierarchyInfo.OnRenaming and HierarchyInfo.OnRenamed methods. This class cannot be inherited.
Assembly: Microsoft.Web.Management (in Microsoft.Web.Management.dll)
| Name | Description | |
|---|---|---|
![]() | HierarchyRenameEventArgs(String) | Initializes a new instance of the HierarchyRenameEventArgs class. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
To rename a page, you must set the HierarchyInfo.SupportsRename property to true.
The HierarchyInfo.OnRenaming method is called when the user starts editing the text of the node. The HierarchyInfo.OnRenamed method is called after the user completes editing the text of the node. A HierarchyRenameEventArgs object specifies the label to change and whether the edit operation has been canceled.
The following example implements the HierarchyInfo.SupportsRename property, the HierarchyInfo.OnRenamed method, and the HierarchyInfo.OnRenaming method, which implements the T:System.Web.Management.Client.HierarchyRenameEventArgs class. This example enables the user to use the Label property to modify the name of the node.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

