ActiveDirectorySubnetCollection.Contains(ActiveDirectorySubnet) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定指定的 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
。
例外
调用基础目录服务导致错误。
subnet
为 null
。
尚未将 ActiveDirectorySubnet 对象保存到 Active Directory 域服务存储区中。