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