Table of Contents

Class MongoDuplicateKeyException

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

Represents a MongoDB duplicate key exception.

[Serializable]
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.