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
ExceptionThe inner exception.
encryptedFields
BsonDocumentThe 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
SerializationInfoThe SerializationInfo.
context
StreamingContextThe StreamingContext.
Properties
EncryptedFields
The encrypted fields.
public BsonDocument EncryptedFields { get; }
Property Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
Gets the object data.
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe information.
context
StreamingContextThe context.