Class GeoNearOperation<TResult>
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents the geoNear command.
public sealed class GeoNearOperation<TResult> : IReadOperation<TResult>
Type Parameters
TResult
The type of the result.
- Inheritance
-
GeoNearOperation<TResult>
- Implements
-
IReadOperation<TResult>
- Inherited Members
- Extension Methods
Constructors
- GeoNearOperation(CollectionNamespace, BsonValue, IBsonSerializer<TResult>, MessageEncoderSettings)
Initializes a new instance of the GeoNearOperation<TResult> class.
Properties
- Collation
Gets or sets the collation.
- CollectionNamespace
Gets the collection namespace.
- DistanceMultiplier
Gets or sets the distance multiplier.
- Filter
Gets or sets the filter.
- IncludeLocs
Gets or sets whether to include the locations of the matching documents.
- Limit
Gets or sets the limit.
- MaxDistance
Gets or sets the maximum distance.
- MaxTime
Gets or sets the maximum time.
- MessageEncoderSettings
Gets the message encoder settings.
- Near
Gets the point for which to find the closest documents.
- ReadConcern
Gets or sets the read concern.
- ResultSerializer
Gets the result serializer.
- Spherical
Gets or sets whether to use spherical geometry.
- UniqueDocs
Gets or sets whether to return a document only once.
Methods
- Execute(IReadBinding, CancellationToken)
Executes the operation.
- ExecuteAsync(IReadBinding, CancellationToken)
Executes the operation.