Table of Contents

Class BulkWriteOperationResult.Acknowledged

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

Represents the result of an acknowledged bulk write operation.

[Serializable]
public class BulkWriteOperationResult.Acknowledged : BulkWriteOperationResult
Inheritance
BulkWriteOperationResult.Acknowledged
Inherited Members

Constructors

Acknowledged(int, long, long, long, long?, IReadOnlyList<WriteRequest>, IReadOnlyList<BulkWriteOperationUpsert>)

Initializes a new instance of the BulkWriteOperationResult.Acknowledged class.

public Acknowledged(int requestCount, long matchedCount, long deletedCount, long insertedCount, long? modifiedCount, IReadOnlyList<WriteRequest> processedRequests, IReadOnlyList<BulkWriteOperationUpsert> upserts)

Parameters

requestCount int

The request count.

matchedCount long

The matched count.

deletedCount long

The deleted count.

insertedCount long

The inserted count.

modifiedCount long?

The modified count.

processedRequests IReadOnlyList<WriteRequest>

The processed requests.

upserts IReadOnlyList<BulkWriteOperationUpsert>

The upserts.

Properties

DeletedCount

Gets the number of documents that were deleted.

public override long DeletedCount { get; }

Property Value

long

The number of document that were deleted.

InsertedCount

Gets the number of documents that were inserted.

public override 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 override 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 override 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 override 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 override long ModifiedCount { get; }

Property Value

long

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

Upserts

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

public override IReadOnlyList<BulkWriteOperationUpsert> Upserts { get; }

Property Value

IReadOnlyList<BulkWriteOperationUpsert>

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