Class ReIndexOperation
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents a reindex operation.
[Obsolete("This class will be removed in a later version of the driver.")]
public class ReIndexOperation : IWriteOperation<BsonDocument>
- Inheritance
-
ReIndexOperation
- Implements
- Inherited Members
- Extension Methods
Constructors
ReIndexOperation(CollectionNamespace, MessageEncoderSettings)
Initializes a new instance of the ReIndexOperation class.
public ReIndexOperation(CollectionNamespace collectionNamespace, MessageEncoderSettings messageEncoderSettings)
Parameters
collectionNamespace
CollectionNamespaceThe collection namespace.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.
Properties
CollectionNamespace
Gets the collection namespace.
public CollectionNamespace CollectionNamespace { get; }
Property Value
- CollectionNamespace
The collection namespace.
MessageEncoderSettings
Gets the message encoder settings.
public MessageEncoderSettings MessageEncoderSettings { get; }
Property Value
- MessageEncoderSettings
The message encoder settings.
WriteConcern
Gets or sets the write concern (ignored and will eventually be deprecated and later removed).
public WriteConcern WriteConcern { get; set; }
Property Value
- WriteConcern
The write concern.
Methods
Execute(IWriteBinding, CancellationToken)
Executes the operation.
public BsonDocument Execute(IWriteBinding binding, CancellationToken cancellationToken)
Parameters
binding
IWriteBindingThe binding.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- BsonDocument
The result of the operation.
ExecuteAsync(IWriteBinding, CancellationToken)
Executes the operation.
public Task<BsonDocument> ExecuteAsync(IWriteBinding binding, CancellationToken cancellationToken)
Parameters
binding
IWriteBindingThe binding.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<BsonDocument>
A Task whose result is the result of the operation.