HierarchyInfo.SupportsRename Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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;
}