IBinaryCommandFieldEncryptorEncryptFields Method |
Encrypts the fields.
Namespace:
MongoDB.Driver.Core.WireProtocol
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax byte[] EncryptFields(
string databaseName,
byte[] unencryptedCommandBytes,
CancellationToken cancellationToken
)
Function EncryptFields (
databaseName As String,
unencryptedCommandBytes As Byte(),
cancellationToken As CancellationToken
) As Byte()
abstract EncryptFields :
databaseName : string *
unencryptedCommandBytes : byte[] *
cancellationToken : CancellationToken -> byte[]
Parameters
- databaseName
- Type: SystemString
The database name. - unencryptedCommandBytes
- Type: SystemByte
The unencrypted command bytes. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
ByteAn encrypted document.
See Also