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 域服务存储区中。

适用于

另请参阅