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

适用于

另请参阅