Constructor MongoWriteConcernException
MongoWriteConcernException(ConnectionId, string, WriteConcernResult)
Initializes a new instance of the MongoWriteConcernException class.
public MongoWriteConcernException(ConnectionId connectionId, string message, WriteConcernResult writeConcernResult)
Parameters
connectionId
ConnectionIdThe connection identifier.
message
stringThe error message.
writeConcernResult
WriteConcernResultThe command result.
MongoWriteConcernException(SerializationInfo, StreamingContext)
Initializes a new instance of the MongoWriteConcernException class.
public MongoWriteConcernException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo.
context
StreamingContextThe StreamingContext.