Constructor MongoBulkWriteException
MongoBulkWriteException(ConnectionId, BulkWriteResult<TDocument>, IEnumerable<BulkWriteError>, WriteConcernError, IEnumerable<WriteModel<TDocument>>)
Initializes a new instance of the MongoBulkWriteException class.
public MongoBulkWriteException(ConnectionId connectionId, BulkWriteResult<TDocument> result, IEnumerable<BulkWriteError> writeErrors, WriteConcernError writeConcernError, IEnumerable<WriteModel<TDocument>> unprocessedRequests)
Parameters
connectionId
ConnectionIdThe connection identifier.
result
BulkWriteResult<TDocument>The result.
writeErrors
IEnumerable<BulkWriteError>The write errors.
writeConcernError
WriteConcernErrorThe write concern error.
unprocessedRequests
IEnumerable<WriteModel<TDocument>>The unprocessed requests.
MongoBulkWriteException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoQueryException class (this overload supports deserialization).
public MongoBulkWriteException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo.
context
StreamingContextThe StreamingContext.