Method EncryptMetadata
- Namespace
- MongoDB.Driver.Encryption
- Assembly
- MongoDB.Driver.Encryption.dll
EncryptMetadata(Guid?, EncryptionAlgorithm?)
Configures encryption metadata for the collection.
public EncryptedCollectionBuilder<TDocument> EncryptMetadata(Guid? keyId = null, EncryptionAlgorithm? algorithm = null)
Parameters
keyId
Guid?The key ID to use for encryption.
algorithm
EncryptionAlgorithm?The encryption algorithm to use.
Returns
- EncryptedCollectionBuilder<TDocument>
The current EncryptedCollectionBuilder<TDocument> instance.