ReadOnlyDirectoryServerCollection.Contains(DirectoryServer) 方法

定义

确定指定的 DirectoryServer 对象是否在此集合中。

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

参数

directoryServer
DirectoryServer

要在此集合中搜索的 DirectoryServer 对象。

返回

如果 DirectoryServer 对象处于此集合中,则为 true;否则为 false

例外

directoryServernull

适用于

另请参阅