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

定義

從 Active Directory 網域服務階層架構刪除這個項目和其整個子樹狀結構。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 ()

例外狀況

備註

在 Active Directory 服務介面(ADSI)系統提供的提供者中,只有輕量型目錄存取協定(LDAP)目前支援這項作業。Of the Active Directory Service Interfaces (ADSI) system-supplied providers, only the Lightweight Directory Access Protocol (LDAP) currently supports this operation.

警告

專案及其整個子樹會從 Active Directory Domain Services 階層中刪除。The entry and its entire subtree are deleted from the Active Directory Domain Services hierarchy.

安全性Security

安全性

DirectoryServicesPermission
刪除專案和其子系。To delete the entry and its children.

適用於