HierarchyInfo.SupportsDelete 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 removal.
protected public:
virtual property bool SupportsDelete { bool get(); };
protected internal virtual bool SupportsDelete { get; }
member this.SupportsDelete : bool
Protected Friend Overridable ReadOnly Property SupportsDelete As Boolean
Property Value
true
if the node supports deletion; otherwise, false
. The default is false
.
Examples
The following example implements the SupportsDelete property.
protected override bool SupportsDelete
{
get
{
return true;
}
}
Remarks
If the SupportsDelete property is set to true
, the user interface (UI) presents a Remove command on the shortcut menu for a node and responds to the DELETE key.