Table of Contents

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 DatabaseNamespace

The database namespace.

command BsonDocument

The command.

resultSerializer IBsonSerializer<TCommandResult>

The result serializer.

messageEncoderSettings MessageEncoderSettings

The message encoder settings.