Table of Contents

Method WithinRectangle

Namespace
MongoDB.Driver.Builders
Assembly
MongoDB.Driver.Legacy.dll

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 static IMongoQuery WithinRectangle<TMember>(Expression<Func<TDocument, TMember>> memberExpression, double lowerLeftX, double lowerLeftY, double upperRightX, double upperRightY)

Parameters

memberExpression Expression<Func<TDocument, TMember>>

The member expression representing the element to test.

lowerLeftX double

The x coordinate of the lower left corner.

lowerLeftY double

The y coordinate of the lower left corner.

upperRightX double

The x coordinate of the upper right corner.

upperRightY double

The y coordinate of the upper right corner.

Returns

IMongoQuery

An IMongoQuery.

Type Parameters

TMember

The member type.