共用方式為


ActiveDirectorySubnetCollection.AddRange 方法

定義

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

多載

AddRange(ActiveDirectorySubnet[])

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

AddRange(ActiveDirectorySubnetCollection)

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

AddRange(ActiveDirectorySubnet[])

來源:
ActiveDirectorySubnetCollection.cs
來源:
ActiveDirectorySubnetCollection.cs
來源:
ActiveDirectorySubnetCollection.cs

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

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

參數

subnets
ActiveDirectorySubnet[]

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

例外狀況

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

物件已存在於集合中。

subnetsnull

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

另請參閱

適用於

AddRange(ActiveDirectorySubnetCollection)

來源:
ActiveDirectorySubnetCollection.cs
來源:
ActiveDirectorySubnetCollection.cs
來源:
ActiveDirectorySubnetCollection.cs

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

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

參數

subnets
ActiveDirectorySubnetCollection

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

例外狀況

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

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

subnetsnull

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

另請參閱

適用於