共用方式為


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

適用於

另請參閱