ActiveDirectorySubnetCollection.Add(ActiveDirectorySubnet) 方法

定义

将指定 ActiveDirectorySubnet 对象追加到此集合中。

public:
 int Add(System::DirectoryServices::ActiveDirectory::ActiveDirectorySubnet ^ subnet);
public int Add (System.DirectoryServices.ActiveDirectory.ActiveDirectorySubnet subnet);
member this.Add : System.DirectoryServices.ActiveDirectory.ActiveDirectorySubnet -> int
Public Function Add (subnet As ActiveDirectorySubnet) As Integer

参数

subnet
ActiveDirectorySubnet

要追加到此集合的 ActiveDirectorySubnet 对象。

返回

追加到此集合的 ActiveDirectorySubnet 从零开始的索引。

例外

调用基础目录服务导致错误。

集合中已存在该对象。

subnetnull

尚未将 ActiveDirectorySubnet 对象保存到 Active Directory 域服务存储区中。

适用于

另请参阅