共用方式為


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

適用於

另請參閱