共用方式為


ReadOnlySiteLinkCollection.Contains(ActiveDirectorySiteLink) 方法

定義

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

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

參數

link
ActiveDirectorySiteLink

要搜尋的 ActiveDirectorySiteLink 物件。

傳回

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

例外狀況

link 參數為 null

適用於

另請參閱