Table of Contents

Constructor DistinctOperation

Namespace
MongoDB.Driver.Core.Operations
Assembly
MongoDB.Driver.Core.dll

DistinctOperation(CollectionNamespace, IBsonSerializer<TValue>, string, MessageEncoderSettings)

Initializes a new instance of the DistinctOperation<TValue> class.

public DistinctOperation(CollectionNamespace collectionNamespace, IBsonSerializer<TValue> valueSerializer, string fieldName, MessageEncoderSettings messageEncoderSettings)

Parameters

collectionNamespace CollectionNamespace

The collection namespace.

valueSerializer IBsonSerializer<TValue>

The value serializer.

fieldName string

The name of the field.

messageEncoderSettings MessageEncoderSettings

The message encoder settings.