Click or drag to resize

FilterDefinitionBuilderTDocumentGeoWithinCenter Method (ExpressionFuncTDocument, Object, Double, Double, Double)

Creates a geo within center filter.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax
public FilterDefinition<TDocument> GeoWithinCenter(
	Expression<Func<TDocument, Object>> field,
	double x,
	double y,
	double radius
)

Parameters

field
Type: System.Linq.ExpressionsExpressionFuncTDocument, Object
The field.
x
Type: SystemDouble
The x.
y
Type: SystemDouble
The y.
radius
Type: SystemDouble
The radius.

Return Value

Type: FilterDefinitionTDocument
A geo within center filter.
See Also