Method Within
Within<TMember, TCoordinates>(Expression<Func<TDocument, TMember>>, GeoJsonPolygon<TCoordinates>)
Tests that the value of the named element is within the specified geometry (see $within).
public IMongoQuery Within<TMember, TCoordinates>(Expression<Func<TDocument, TMember>> memberExpression, GeoJsonPolygon<TCoordinates> polygon) where TCoordinates : GeoJsonCoordinates
Parameters
memberExpressionExpression<Func<TDocument, TMember>>The member expression.
polygonGeoJsonPolygon<TCoordinates>The polygon.
Returns
- IMongoQuery
An IMongoQuery.
Type Parameters
TMemberThe type of the member.
TCoordinatesThe type of the coordinates.