ReplicationNeighborCollection.Contains(ReplicationNeighbor) 方法

定义

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

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

参数

neighbor
ReplicationNeighbor

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

返回

如果 ReplicationNeighbor 对象在此集合中,则为 true;否则为 false

例外

neighbornull

适用于

另请参阅