Table of Contents

Constructor MongoWriteException

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

MongoWriteException(ConnectionId, WriteError, WriteConcernError, Exception)

Initializes a new instance of the MongoWriteException class.

public MongoWriteException(ConnectionId connectionId, WriteError writeError, WriteConcernError writeConcernError, Exception innerException)

Parameters

connectionId ConnectionId

The connection identifier.

writeError WriteError

The write error.

writeConcernError WriteConcernError

The write concern error.

innerException Exception

The inner exception.

MongoWriteException(SerializationInfo, StreamingContext)

Initializes a new instance of the MongoQueryException class (this overload supports deserialization).

public MongoWriteException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo.

context StreamingContext

The StreamingContext.