Occurs when the Rename command is called from the user interface (UI) or programmatically.
protected internal virtual void OnRenaming(
Application developers can set the 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.
protected override void OnRenaming(HierarchyRenameEventArgs e)
Trace.WriteLine("OnRenaming called with e.Label = \"" + e.Label + "\"");
e.Cancel = false;