Click or drag to resize

IndexOptions<TDocument>.SetGeoSpatialRange Method

Sets the geospatial range.

Namespace:  MongoDB.Driver.Builders
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public static IndexOptionsBuilder<TDocument> SetGeoSpatialRange(
	double min,
	double max
)

Parameters

min
Type: System.Double
The min value of the range.
max
Type: System.Double
The max value of the range.

Return Value

Type: IndexOptionsBuilder<TDocument>
The builder (so method calls can be chained).
See Also