共用方式為


ActiveDirectorySubnetCollection.Contains(ActiveDirectorySubnet) 方法

定義

判斷指定的 ActiveDirectorySubnet 物件是否在這個集合中。

public:
 bool Contains(System::DirectoryServices::ActiveDirectory::ActiveDirectorySubnet ^ subnet);
public bool Contains (System.DirectoryServices.ActiveDirectory.ActiveDirectorySubnet subnet);
member this.Contains : System.DirectoryServices.ActiveDirectory.ActiveDirectorySubnet -> bool
Public Function Contains (subnet As ActiveDirectorySubnet) As Boolean

參數

subnet
ActiveDirectorySubnet

要在此集合中搜尋的 ActiveDirectorySubnet 物件。

傳回

如果 ActiveDirectorySubnet 物件在此集合中,則為 true,否則為 false

例外狀況

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

subnetnull

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

適用於

另請參閱