Table of Contents

Method Within

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

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 static IMongoQuery Within<TMember, TCoordinates>(Expression<Func<TDocument, TMember>> memberExpression, GeoJsonPolygon<TCoordinates> polygon) where TCoordinates : GeoJsonCoordinates

Parameters

memberExpression Expression<Func<TDocument, TMember>>

The member expression.

polygon GeoJsonPolygon<TCoordinates>

The polygon.

Returns

IMongoQuery

An IMongoQuery.

Type Parameters

TMember

The type of the member.

TCoordinates

The type of the coordinates.