Table of Contents

Method Encrypt

Namespace
MongoDB.Driver.Encryption
Assembly
MongoDB.Driver.Encryption.dll

Encrypt<T>(CollectionNamespace, Action<EncryptedCollectionBuilder<T>>)

Adds an encrypted collection schema for a specific collection namespace.

public CsfleSchemaBuilder Encrypt<T>(CollectionNamespace collectionNamespace, Action<EncryptedCollectionBuilder<T>> configure)

Parameters

collectionNamespace CollectionNamespace

The namespace of the collection.

configure Action<EncryptedCollectionBuilder<T>>

An action to configure the encrypted collection builder.

Returns

CsfleSchemaBuilder

The current CsfleSchemaBuilder instance.

Type Parameters

T

The type of the document in the collection.