Click or drag to resize

FilterDefinitionBuilderTDocumentNear Method (FieldDefinitionTDocument, Double, Double, NullableDouble, NullableDouble)

Creates a near filter.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
public FilterDefinition<TDocument> Near(
	FieldDefinition<TDocument> field,
	double x,
	double y,
	Nullable<double> maxDistance = null,
	Nullable<double> minDistance = null
)

Parameters

field
Type: MongoDB.DriverFieldDefinitionTDocument
The field.
x
Type: SystemDouble
The x.
y
Type: SystemDouble
The y.
maxDistance (Optional)
Type: SystemNullableDouble
The maximum distance.
minDistance (Optional)
Type: SystemNullableDouble
The minimum distance.

Return Value

Type: FilterDefinitionTDocument
A near filter.
See Also