共用方式為


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 網域服務存放區中。

適用於

另請參閱