Table of Contents

Class BulkWriteConcernError

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

Represents the details of a write concern error.

[Serializable]
public sealed class BulkWriteConcernError
Inheritance
BulkWriteConcernError
Inherited Members

Constructors

BulkWriteConcernError(int, string, BsonDocument)

Initializes a new instance of the BulkWriteConcernError class.

public BulkWriteConcernError(int code, string message, BsonDocument details)

Parameters

code int

The code.

message string

The message.

details BsonDocument

The details.

BulkWriteConcernError(int, string, string, BsonDocument)

Initializes a new instance of the BulkWriteConcernError class.

public BulkWriteConcernError(int code, string codeName, string message, BsonDocument details)

Parameters

code int

The code.

codeName string

The name of the code.

message string

The message.

details BsonDocument

The details.

BulkWriteConcernError(int, string, string, BsonDocument, IEnumerable<string>)

Initializes a new instance of the BulkWriteConcernError class.

public BulkWriteConcernError(int code, string codeName, string message, BsonDocument details, IEnumerable<string> errorLabels)

Parameters

code int

The code.

codeName string

The name of the code.

message string

The message.

details BsonDocument

The details.

errorLabels IEnumerable<string>

The error labels.

Properties

Code

Gets the error code.

public int Code { get; }

Property Value

int

The error code.

CodeName

Gets the name of the error code.

public string CodeName { get; }

Property Value

string

The name of the error code.

Details

Gets the error details.

public BsonDocument Details { get; }

Property Value

BsonDocument

The error details.

ErrorLabels

Gets the error labels.

public IEnumerable<string> ErrorLabels { get; }

Property Value

IEnumerable<string>

The error labels.

Message

Gets the error message.

public string Message { get; }

Property Value

string

The error message.