Table of Contents

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

databaseName string

The database name.

unencryptedCommandBytes byte[]

The unencrypted command bytes.

cancellationToken CancellationToken

The cancellation token.

Returns

byte[]

An encrypted document.