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
- codeint
- The code. 
- messagestring
- The message. 
- detailsBsonDocument
- 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
- codeint
- The code. 
- codeNamestring
- The name of the code. 
- messagestring
- The message. 
- detailsBsonDocument
- 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
- codeint
- The code. 
- codeNamestring
- The name of the code. 
- messagestring
- The message. 
- detailsBsonDocument
- The details. 
- errorLabelsIEnumerable<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.