Constructor GeoNearOperation
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
GeoNearOperation(CollectionNamespace, BsonValue, IBsonSerializer<TResult>, MessageEncoderSettings)
Initializes a new instance of the GeoNearOperation<TResult> class.
public GeoNearOperation(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.