Επεξεργασία

Κοινή χρήση μέσω


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

The specified DirectoryEntry is not a container.

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

Applies to