Share via


HierarchyInfo.SupportsRename Property

Definition

Gets a value indicating whether the node supports renaming.

protected public:
 virtual property bool SupportsRename { bool get(); };
protected internal virtual bool SupportsRename { get; }
member this.SupportsRename : bool
Protected Friend Overridable ReadOnly Property SupportsRename As Boolean

Property Value

true if the node supports renaming; otherwise, false. The default is false.

Examples

The following example implements the SupportsRename property and OnRenamed method.

protected override bool SupportsRename
{
    get
    {
        return true;
    }
}
protected override void OnRenamed(HierarchyRenameEventArgs e)
{
    Trace.WriteLine("Node Name change from: "
        + _sNodeName + " to: " + e.Label);
    _sNodeName = e.Label;
}

Applies to