Table of Contents

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 CollectionNamespace

The collection namespace.

near BsonValue

The point for which to find the closest documents.

resultSerializer IBsonSerializer<TResult>

The result serializer.

messageEncoderSettings MessageEncoderSettings

The message encoder settings.