共用方式為


ActiveDirectorySiteCollection.Remove(ActiveDirectorySite) 方法

定義

移除這個集合中第一個與指定 ActiveDirectorySite 物件相同的物件項目。

public:
 void Remove(System::DirectoryServices::ActiveDirectory::ActiveDirectorySite ^ site);
public void Remove (System.DirectoryServices.ActiveDirectory.ActiveDirectorySite site);
member this.Remove : System.DirectoryServices.ActiveDirectory.ActiveDirectorySite -> unit
Public Sub Remove (site As ActiveDirectorySite)

參數

site
ActiveDirectorySite

要從此集合移除的 ActiveDirectorySite 物件。

例外狀況

呼叫基礎目錄服務時,發生錯誤。

物件不存在於集合中。

sitenull

ActiveDirectorySite 物件尚未儲存在 Active Directory 網域服務存放區中。

適用於

另請參閱