Table of Contents

Class BulkWriteResult

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Represents the result of a bulk write operation.

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

Constructors

BulkWriteResult(int)

Initializes a new instance of the BulkWriteResult class.

protected BulkWriteResult(int requestCount)

Parameters

requestCount int

The request count.

Properties

DeletedCount

Gets the number of documents that were deleted.

public abstract long DeletedCount { get; }

Property Value

long

InsertedCount

Gets the number of documents that were inserted.

public abstract long InsertedCount { get; }

Property Value

long

IsAcknowledged

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

public abstract bool IsAcknowledged { get; }

Property Value

bool

IsModifiedCountAvailable

Gets a value indicating whether the modified count is available.

public abstract bool IsModifiedCountAvailable { get; }

Property Value

bool

Remarks

The available modified count.

MatchedCount

Gets the number of documents that were matched.

public abstract long MatchedCount { get; }

Property Value

long

ModifiedCount

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

public abstract long ModifiedCount { get; }

Property Value

long

RequestCount

Gets the request count.

public int RequestCount { get; }

Property Value

int

Upserts

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

public abstract IReadOnlyList<BulkWriteUpsert> Upserts { get; }

Property Value

IReadOnlyList<BulkWriteUpsert>