Constructor WriteCommandOperation
- Namespace
- MongoDB.Driver.Core.Operations
- Assembly
- MongoDB.Driver.Core.dll
WriteCommandOperation(DatabaseNamespace, BsonDocument, IBsonSerializer<TCommandResult>, MessageEncoderSettings)
Initializes a new instance of the WriteCommandOperation<TCommandResult> class.
public WriteCommandOperation(DatabaseNamespace databaseNamespace, BsonDocument command, IBsonSerializer<TCommandResult> resultSerializer, MessageEncoderSettings messageEncoderSettings)
Parameters
databaseNamespace
DatabaseNamespaceThe database namespace.
command
BsonDocumentThe command.
resultSerializer
IBsonSerializer<TCommandResult>The result serializer.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.