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
-
IRead
Operation <TResult>
- Inherited Members
- Extension Methods
Constructors
- GeoSearchOperation(CollectionNamespace, BsonValue, IBsonSerializer<TResult>, MessageEncoderSettings)
Initializes a new instance of the GeoSearchOperation<TResult> class.
Properties
- Collection
Namespace Gets the collection namespace.
- Limit
Gets or sets the limit.
- Max
Distance Gets or sets the maximum distance.
- Max
Time Gets or sets the maximum time.
- Message
Encoder Settings Gets the message encoder settings.
- Near
Gets the point for which to find the closest documents.
- Read
Concern Gets or sets the read concern.
- Result
Serializer Gets the result serializer.
- Search
Gets or sets the search.
Methods
- Execute(IRead
Binding, Cancellation Token) Executes the operation.
- Execute
Async(IRead Binding, Cancellation Token) Executes the operation.