DirectoryEntry.DeleteTree DirectoryEntry.DeleteTree DirectoryEntry.DeleteTree DirectoryEntry.DeleteTree Method

Definition

Deletes this entry and its entire subtree from the Active Directory Domain Services hierarchy.

public:
 void DeleteTree();
public void DeleteTree ();
member this.DeleteTree : unit -> unit
Public Sub DeleteTree ()

Exceptions

Remarks

Of the Active Directory Service Interfaces (ADSI) system-supplied providers, only the Lightweight Directory Access Protocol (LDAP) currently supports this operation.

Caution

The entry and its entire subtree are deleted from the Active Directory Domain Services hierarchy.

Security

Security

DirectoryServicesPermission
To delete the entry and its children.

Applies to