Click or drag to resize
MongoWriteException Constructor (ConnectionId, WriteError, WriteConcernError, Exception)
Initializes a new instance of the MongoWriteException class.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.0.1
Syntax
public MongoWriteException(
	ConnectionId connectionId,
	WriteError writeError,
	WriteConcernError writeConcernError,
	Exception innerException
)

Parameters

connectionId
Type: MongoDB.Driver.Core.Connections.ConnectionId
The connection identifier.
writeError
Type: MongoDB.Driver.WriteError
The write error.
writeConcernError
Type: MongoDB.Driver.WriteConcernError
The write concern error.
innerException
Type: System.Exception
The inner exception.
See Also