Table of Contents

Constructor MongoDuplicateKeyException

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

MongoDuplicateKeyException(ConnectionId, string, WriteConcernResult)

Initializes a new instance of the MongoDuplicateKeyException class.

public MongoDuplicateKeyException(ConnectionId connectionId, string message, WriteConcernResult commandResult)

Parameters

connectionId ConnectionId

The connection identifier.

message string

The error message.

commandResult WriteConcernResult

The command result.

MongoDuplicateKeyException(SerializationInfo, StreamingContext)

Initializes a new instance of the MongoDuplicateKeyException class.

public MongoDuplicateKeyException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo.

context StreamingContext

The StreamingContext.