Table of Contents

Class InsertOpcodeOperation<TDocument>

Namespace
MongoDB.Driver.Core.Operations
Assembly
MongoDB.Driver.Core.dll

Represents an insert operation using the insert opcode.

public class InsertOpcodeOperation<TDocument> : IWriteOperation<IEnumerable<WriteConcernResult>>

Type Parameters

TDocument

The type of the document.

Inheritance
InsertOpcodeOperation<TDocument>
Implements
Inherited Members
Extension Methods

Constructors

InsertOpcodeOperation(CollectionNamespace, BatchableSource<TDocument>, IBsonSerializer<TDocument>, MessageEncoderSettings)

Initializes a new instance of the InsertOpcodeOperation<TDocument> class.

InsertOpcodeOperation(CollectionNamespace, IEnumerable<TDocument>, IBsonSerializer<TDocument>, MessageEncoderSettings)

Initializes a new instance of the InsertOpcodeOperation<TDocument> class.

Properties

BypassDocumentValidation

Gets or sets a value indicating whether to bypass document validation.

CollectionNamespace

Gets the collection namespace.

ContinueOnError

Gets a value indicating whether the server should continue on error.

DocumentSource

Gets the document source.

Documents

Gets the documents.

MaxBatchCount

Gets or sets the maximum number of documents in a batch.

MaxDocumentSize

Gets or sets the maximum size of a document.

MaxMessageSize

Gets or sets the maximum size of a message.

MessageEncoderSettings

Gets the message encoder settings.

RetryRequested

Gets or sets a value indicating whether retry is enabled for the operation.

Serializer

Gets the serializer.

WriteConcern

Gets or sets the write concern.

Methods

Execute(IWriteBinding, CancellationToken)

Executes the operation.

ExecuteAsync(IWriteBinding, CancellationToken)

Executes the operation.