Constructor MongoNotPrimaryException
MongoNotPrimaryException(ConnectionId, BsonDocument, BsonDocument)
Initializes a new instance of the Mongo
public MongoNotPrimaryException(ConnectionId connectionId, BsonDocument command, BsonDocument result)
Parameters
connectionId
ConnectionId The connection identifier.
command
BsonDocument The command.
result
BsonDocument The result.
MongoNotPrimaryException(SerializationInfo, StreamingContext)
Initializes a new instance of the Mongo
Parameters
info
SerializationInfo The SerializationInfo.
context
StreamingContext The StreamingContext.