Class WriteCommandOperation<TCommandResult>
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
Represents a write command operation.
public class WriteCommandOperation<TCommandResult> : CommandOperationBase<TCommandResult>, IWriteOperation<TCommandResult>
Type Parameters
TCommandResult
The type of the command result.
- Inheritance
-
CommandOperationBase<TCommandResult>WriteCommandOperation<TCommandResult>
- Implements
-
IWriteOperation<TCommandResult>
- Inherited Members
- Extension Methods
Constructors
- WriteCommandOperation(DatabaseNamespace, BsonDocument, IBsonSerializer<TCommandResult>, MessageEncoderSettings)
Initializes a new instance of the WriteCommandOperation<TCommandResult> class.
Properties
- ReadPreference
Gets or sets the read preference.
Methods
- Execute(IWriteBinding, CancellationToken)
Executes the operation.
- ExecuteAsync(IWriteBinding, CancellationToken)
Executes the operation.