Class GeoSearchOperation<TResult>
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents the geoSearch command.
[Obsolete("The geoSearch command was deprecated in server version 4.4.")]
public sealed class GeoSearchOperation<TResult> : IReadOperation<TResult>
Type Parameters
TResult
The type of the result.
- Inheritance
-
GeoSearchOperation<TResult>
- Implements
-
IReadOperation<TResult>
- Inherited Members
- Extension Methods
Constructors
- GeoSearchOperation(CollectionNamespace, BsonValue, IBsonSerializer<TResult>, MessageEncoderSettings)
Initializes a new instance of the GeoSearchOperation<TResult> class.
Properties
- CollectionNamespace
Gets the collection namespace.
- 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.
- Search
Gets or sets the search.
Methods
- Execute(IReadBinding, CancellationToken)
Executes the operation.
- ExecuteAsync(IReadBinding, CancellationToken)
Executes the operation.