Table of Contents

Method Contains

Namespace
MongoDB.Driver.Core.Misc
Assembly
MongoDB.Driver.dll

Contains(IEnumerable<EndPoint>, EndPoint)

Determines whether a list of end points contains a specific end point.

public static bool Contains(IEnumerable<EndPoint> endPoints, EndPoint endPoint)

Parameters

endPoints IEnumerable<EndPoint>

The list of end points.

endPoint EndPoint

The specific end point to search for.

Returns

bool

True if the list of end points contains the specific end point.