ActiveDirectorySubnetCollection.AddRange 方法

定义

将一系列项添加到此集合。

重载

AddRange(ActiveDirectorySubnet[])

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

AddRange(ActiveDirectorySubnetCollection)

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

AddRange(ActiveDirectorySubnet[])

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

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

另请参阅

适用于