Table of Contents

Class BulkWriteOperationResult

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

Represents the result of a bulk write operation.

[Serializable]
public abstract class BulkWriteOperationResult
Inheritance
BulkWriteOperationResult
Derived
Inherited Members

Constructors

BulkWriteOperationResult(int, IReadOnlyList<WriteRequest>)

Initializes a new instance of the BulkWriteOperationResult class.

protected BulkWriteOperationResult(int requestCount, IReadOnlyList<WriteRequest> processedRequests)

Parameters

requestCount int

The request count.

processedRequests IReadOnlyList<WriteRequest>

The processed requests.

Properties

DeletedCount

Gets the number of documents that were deleted.

public abstract long DeletedCount { get; }

Property Value

long

The number of document that were deleted.

InsertedCount

Gets the number of documents that were inserted.

public abstract long InsertedCount { get; }

Property Value

long

The number of document that were inserted.

IsAcknowledged

Gets a value indicating whether the bulk write operation was acknowledged.

public abstract bool IsAcknowledged { get; }

Property Value

bool

true if the bulk write operation was acknowledged; otherwise, false.

IsModifiedCountAvailable

Gets a value indicating whether the modified count is available.

public abstract bool IsModifiedCountAvailable { get; }

Property Value

bool

true if the modified count is available; otherwise, false.

Remarks

The available modified count.

MatchedCount

Gets the number of documents that were matched.

public abstract long MatchedCount { get; }

Property Value

long

The number of document that were matched.

ModifiedCount

Gets the number of documents that were actually modified during an update.

public abstract long ModifiedCount { get; }

Property Value

long

The number of document that were actually modified during an update.

ProcessedRequests

Gets the processed requests.

public IReadOnlyList<WriteRequest> ProcessedRequests { get; }

Property Value

IReadOnlyList<WriteRequest>

The processed requests.

RequestCount

Gets the request count.

public int RequestCount { get; }

Property Value

int

The request count.

Upserts

Gets a list with information about each request that resulted in an upsert.

public abstract IReadOnlyList<BulkWriteOperationUpsert> Upserts { get; }

Property Value

IReadOnlyList<BulkWriteOperationUpsert>

The list with information about each request that resulted in an upsert.