共用方式為


ActiveDirectorySiteCollection.AddRange 方法

定義

將某範圍的項目附加至這個集合。

多載

AddRange(ActiveDirectorySite[])

將指定 ActiveDirectorySite 陣列的內容附加到這個集合中。

AddRange(ActiveDirectorySiteCollection)

將指定 ActiveDirectorySiteCollection 物件的內容附加到這個集合中。

AddRange(ActiveDirectorySite[])

來源:
ActiveDirectorySiteCollection.cs
來源:
ActiveDirectorySiteCollection.cs
來源:
ActiveDirectorySiteCollection.cs

將指定 ActiveDirectorySite 陣列的內容附加到這個集合中。

public:
 void AddRange(cli::array <System::DirectoryServices::ActiveDirectory::ActiveDirectorySite ^> ^ sites);
public void AddRange (System.DirectoryServices.ActiveDirectory.ActiveDirectorySite[] sites);
member this.AddRange : System.DirectoryServices.ActiveDirectory.ActiveDirectorySite[] -> unit
Public Sub AddRange (sites As ActiveDirectorySite())

參數

sites
ActiveDirectorySite[]

包含要附加至此集合物件的 ActiveDirectorySite 陣列。

例外狀況

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

物件已存在於集合中。

sitesnull

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

另請參閱

適用於

AddRange(ActiveDirectorySiteCollection)

來源:
ActiveDirectorySiteCollection.cs
來源:
ActiveDirectorySiteCollection.cs
來源:
ActiveDirectorySiteCollection.cs

將指定 ActiveDirectorySiteCollection 物件的內容附加到這個集合中。

public:
 void AddRange(System::DirectoryServices::ActiveDirectory::ActiveDirectorySiteCollection ^ sites);
public void AddRange (System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteCollection sites);
member this.AddRange : System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteCollection -> unit
Public Sub AddRange (sites As ActiveDirectorySiteCollection)

參數

sites
ActiveDirectorySiteCollection

包含要附加至此集合物件的 ActiveDirectorySiteCollection 物件。

例外狀況

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

物件已存在於這個集合中。

sitesnull

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

另請參閱

適用於