FilterDefinitionBuilderTDocumentGeoWithinTCoordinates Method (ExpressionFuncTDocument, Object, GeoJsonGeometryTCoordinates) |
Creates a geo within filter.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntax public FilterDefinition<TDocument> GeoWithin<TCoordinates>(
Expression<Func<TDocument, Object>> field,
GeoJsonGeometry<TCoordinates> geometry
)
where TCoordinates : GeoJsonCoordinates
Public Function GeoWithin(Of TCoordinates As GeoJsonCoordinates) (
field As Expression(Of Func(Of TDocument, Object)),
geometry As GeoJsonGeometry(Of TCoordinates)
) As FilterDefinition(Of TDocument)
member GeoWithin :
field : Expression<Func<'TDocument, Object>> *
geometry : GeoJsonGeometry<'TCoordinates> -> FilterDefinition<'TDocument> when 'TCoordinates : GeoJsonCoordinates
Parameters
- field
- Type: System.Linq.ExpressionsExpressionFuncTDocument, Object
The field. - geometry
- Type: MongoDB.Driver.GeoJsonObjectModelGeoJsonGeometryTCoordinates
The geometry.
Type Parameters
- TCoordinates
- The type of the coordinates.
Return Value
Type:
FilterDefinitionTDocumentA geo within filter.
See Also