Table of Contents

Method Within

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

Within<TCoordinates>(string, GeoJsonPolygon<TCoordinates>)

Tests that the value of the named element is within the specified geometry (see $within).

public static IMongoQuery Within<TCoordinates>(string name, GeoJsonPolygon<TCoordinates> polygon) where TCoordinates : GeoJsonCoordinates

Parameters

name string

The name of the element to test.

polygon GeoJsonPolygon<TCoordinates>

The polygon.

Returns

IMongoQuery

An IMongoQuery.

Type Parameters

TCoordinates

The type of the coordinates.