Table of Contents

Class MongoDuplicateKeyException

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Represents a MongoDB duplicate key exception.

public class MongoDuplicateKeyException : MongoWriteConcernException, ISerializable
Inheritance
MongoDuplicateKeyException
Implements
Inherited Members

Constructors

MongoDuplicateKeyException(ConnectionId, string, WriteConcernResult)

Initializes a new instance of the MongoDuplicateKeyException class.

MongoDuplicateKeyException(SerializationInfo, StreamingContext)

Initializes a new instance of the MongoDuplicateKeyException class.