Table of Contents

Constructor MongoNotPrimaryException

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

MongoNotPrimaryException(ConnectionId, BsonDocument, BsonDocument)

Initializes a new instance of the MongoNotPrimaryException class.

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 MongoNotPrimaryException class.

protected MongoNotPrimaryException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo.

context StreamingContext

The StreamingContext.