Table of Contents

Class MongoEncryptionCreateCollectionException

Namespace
MongoDB.Driver.Encryption
Assembly
MongoDB.Driver.dll

Represents an encryption exception.

[Serializable]
public class MongoEncryptionCreateCollectionException : MongoEncryptionException, ISerializable
Inheritance
MongoEncryptionCreateCollectionException
Implements
Inherited Members

Constructors

MongoEncryptionCreateCollectionException(Exception, BsonDocument)

Initializes a new instance of the MongoEncryptionException class.

public MongoEncryptionCreateCollectionException(Exception innerException, BsonDocument encryptedFields)

Parameters

innerException Exception

The inner exception.

encryptedFields BsonDocument

The encrypted fields.

MongoEncryptionCreateCollectionException(SerializationInfo, StreamingContext)

Initializes a new instance of the MongoEncryptionCreateCollectionException class (this overload used by deserialization).

protected MongoEncryptionCreateCollectionException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo.

context StreamingContext

The StreamingContext.

Properties

EncryptedFields

The encrypted fields.

public BsonDocument EncryptedFields { get; }

Property Value

BsonDocument

Methods

GetObjectData(SerializationInfo, StreamingContext)

Gets the object data.

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The information.

context StreamingContext

The context.