ADM_DELETEOBJECTFLAGS_ENUM

The ADM_DELETEOBJECTFLAGS_ENUM enumeration defines options for the Delete Object operation.

Syntax

enum ADM_DELETEOBJECTFLAGS_ENUM
{
    ADM_DELETEOBJECTFLAGS_SUBTREE  = 0,  //0x0
    ADM_DELETEOBJECTFLAGS_LEAF     = 1,  //0x1
    ADM_DELETEOBJECTFLAGS_AUTO     = 2,  //0x2
}

Constants

  • Flag

  • Description

  • ADM_DELETEOBJECTFLAGS_SUBTREE

  • Indicates that the object should be deleted as a subtree**. This operation requires the ADS_RIGHT_DS_DELETE_TREE permission.

  • ADM_DELETEOBJECTFLAGS_LEAF

  • Indicates that the object should be deleted as a leaf. This operation requires the ADS_RIGHT_DS_DELETE_CHILD permission. If the object being deleted has child objects, the operation will fail.

  • ADM_DELETEOBJECTFLAGS_AUTO

  • When this flag is specified, the method will try to delete the object as a subtree. If the Access Denied error occurs, and the object does not have any children, the method will try to delete it as a leaf.

Requirements

Minimum required version: 2009.1

See also