Class DistinctOperation<TValue>
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents a distinct operation.
public class DistinctOperation<TValue> : IReadOperation<IAsyncCursor<TValue>>
Type Parameters
TValue
The type of the value.
- Inheritance
-
DistinctOperation<TValue>
- Implements
-
IReadOperation<IAsyncCursor<TValue>>
- Inherited Members
- Extension Methods
Constructors
- DistinctOperation(CollectionNamespace, IBsonSerializer<TValue>, string, MessageEncoderSettings)
Initializes a new instance of the DistinctOperation<TValue> class.
Properties
- Collation
Gets or sets the collation.
- CollectionNamespace
Gets the collection namespace.
- Comment
Gets or sets the comment.
- FieldName
Gets the name of the field.
- Filter
Gets or sets the filter.
- MaxTime
Gets or sets the maximum time the server should spend on this operation.
- MessageEncoderSettings
Gets the message encoder settings.
- ReadConcern
Gets or sets the read concern.
- RetryRequested
Gets or sets a value indicating whether to retry.
- ValueSerializer
Gets the value serializer.
Methods
- Execute(IReadBinding, CancellationToken)
Executes the operation.
- ExecuteAsync(IReadBinding, CancellationToken)
Executes the operation.