FilterDefinitionBuilderTDocumentNearSphere Method (FieldDefinitionTDocument, Double, Double, NullableDouble, NullableDouble) |
Creates a near sphere filter.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
Syntaxpublic FilterDefinition<TDocument> NearSphere(
FieldDefinition<TDocument> field,
double x,
double y,
Nullable<double> maxDistance = null,
Nullable<double> minDistance = null
)
Public Function NearSphere (
field As FieldDefinition(Of TDocument),
x As Double,
y As Double,
Optional maxDistance As Nullable(Of Double) = Nothing,
Optional minDistance As Nullable(Of Double) = Nothing
) As FilterDefinition(Of TDocument)
member NearSphere :
field : FieldDefinition<'TDocument> *
x : float *
y : float *
?maxDistance : Nullable<float> *
?minDistance : Nullable<float>
(* Defaults:
let _maxDistance = defaultArg maxDistance null
let _minDistance = defaultArg minDistance null
*)
-> FilterDefinition<'TDocument>
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:
FilterDefinitionTDocumentA near sphere filter.
See Also