ReplicationConnectionCollection.Contains(ReplicationConnection) 方法

定义

确定指定的 ReplicationConnection 对象是否在此集合中。

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

参数

connection
ReplicationConnection

要在此集合中搜索的 ReplicationConnection 对象。

返回

如果 ReplicationConnection 对象处于此集合中,则为 true;否则为 false

例外

connection 参数为 null

适用于

另请参阅