ActiveDirectorySubnetCollection.Remove(ActiveDirectorySubnet) 方法

定义

移除此集合中与指定的 ActiveDirectorySubnet 对象相同的对象的第一个匹配项。

public:
 void Remove(System::DirectoryServices::ActiveDirectory::ActiveDirectorySubnet ^ subnet);
public void Remove (System.DirectoryServices.ActiveDirectory.ActiveDirectorySubnet subnet);
member this.Remove : System.DirectoryServices.ActiveDirectory.ActiveDirectorySubnet -> unit
Public Sub Remove (subnet As ActiveDirectorySubnet)

参数

subnet
ActiveDirectorySubnet

要从此集合中移除的 ActiveDirectorySubnet 对象。

例外

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

集合中不存在该对象。

subnetnull

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

适用于

另请参阅