Method EncryptFields
- Namespace
- MongoDB.Driver.Core.WireProtocol
- Assembly
- MongoDB.Driver.dll
EncryptFields(string, byte[], CancellationToken)
Encrypts the fields.
byte[] EncryptFields(string databaseName, byte[] unencryptedCommandBytes, CancellationToken cancellationToken)
Parameters
databaseName
stringThe database name.
unencryptedCommandBytes
byte[]The unencrypted command bytes.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- byte[]
An encrypted document.