ActiveDirectorySiteCollection.AddRange 方法

定义

将一个范围内的项追加到此集合中。

重载

AddRange(ActiveDirectorySite[])

将指定 ActiveDirectorySite 数组的内容追加到此集合中。

AddRange(ActiveDirectorySiteCollection)

将指定 ActiveDirectorySiteCollection 对象的内容追加到此集合中。

AddRange(ActiveDirectorySite[])

Source:
ActiveDirectorySiteCollection.cs
Source:
ActiveDirectorySiteCollection.cs
Source:
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)

Source:
ActiveDirectorySiteCollection.cs
Source:
ActiveDirectorySiteCollection.cs
Source:
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 域服务存储区中。

另请参阅

适用于