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
databaseNamestringThe database name.
unencryptedCommandBytesbyte[]The unencrypted command bytes.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- byte[]
 An encrypted document.