ReadOnlySiteCollection.Contains(ActiveDirectorySite) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷指定的 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
。
例外狀況
site
為 null
。