共用方式為


ReadOnlySiteCollection.Contains(ActiveDirectorySite) 方法

定義

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

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

參數

site
ActiveDirectorySite

要搜尋的 ActiveDirectorySite 物件。

傳回

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

例外狀況

sitenull

適用於

另請參閱