Method WithinRectangle
WithinRectangle<TMember>(Expression<Func<TDocument, TMember>>, double, double, double, double)
Tests that the value of the named element is within a rectangle (see $within and $box).
public IMongoQuery WithinRectangle<TMember>(Expression<Func<TDocument, TMember>> memberExpression, double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY)
Parameters
memberExpressionExpression<Func<TDocument, TMember>>The member expression representing the element to test.
lowerLeftXdoubleThe x coordinate of the lower left corner.
lowerLeftYdoubleThe y coordinate of the lower left corner.
upperRightXdoubleThe x coordinate of the upper right corner.
upperRightYdoubleThe y coordinate of the upper right corner.
Returns
- IMongoQuery
An IMongoQuery.
Type Parameters
TMemberThe member type.