Share via


HierarchyInfo.SupportsDelete Property

Definition

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.

Applies to