Click or drag to resize

EndPointHelperContains Method

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

Namespace:  MongoDB.Driver.Core.Misc
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax
public static bool Contains(
	IEnumerable<EndPoint> endPoints,
	EndPoint endPoint
)

Parameters

endPoints
Type: System.Collections.GenericIEnumerableEndPoint
The list of end points.
endPoint
Type: System.NetEndPoint
The specific end point to search for.

Return Value

Type: Boolean
True if the list of end points contains the specific end point.
See Also