Constructor GeoSearchOperation
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
GeoSearchOperation(CollectionNamespace, BsonValue, IBsonSerializer<TResult>, MessageEncoderSettings)
Initializes a new instance of the GeoSearchOperation<TResult> class.
public GeoSearchOperation(CollectionNamespace collectionNamespace, BsonValue near, IBsonSerializer<TResult> resultSerializer, MessageEncoderSettings messageEncoderSettings)
Parameters
collectionNamespace
CollectionNamespaceThe collection namespace.
near
BsonValueThe point for which to find the closest documents.
resultSerializer
IBsonSerializer<TResult>The result serializer.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.