Table of Contents

Method With

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

With(Optional<CollectionNamespace>, Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, object>>>, Optional<bool>, Optional<bool?>, Optional<IReadOnlyDictionary<string, object>>, Optional<IMongoClient>, Optional<IReadOnlyDictionary<string, BsonDocument>>, Optional<IReadOnlyDictionary<string, SslSettings>>, Optional<IReadOnlyDictionary<string, BsonDocument>>)

Returns a new instance of the AutoEncryptionOptions class.

public AutoEncryptionOptions With(Optional<CollectionNamespace> keyVaultNamespace = default, Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, object>>> kmsProviders = default, Optional<bool> bypassAutoEncryption = default, Optional<bool?> bypassQueryAnalysis = default, Optional<IReadOnlyDictionary<string, object>> extraOptions = default, Optional<IMongoClient> keyVaultClient = default, Optional<IReadOnlyDictionary<string, BsonDocument>> schemaMap = default, Optional<IReadOnlyDictionary<string, SslSettings>> tlsOptions = default, Optional<IReadOnlyDictionary<string, BsonDocument>> encryptedFieldsMap = default)

Parameters

keyVaultNamespace Optional<CollectionNamespace>

The keyVault namespace.

kmsProviders Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, object>>>

The kms providers.

bypassAutoEncryption Optional<bool>

The bypass auto encryption flag.

bypassQueryAnalysis Optional<bool?>

The bypass query analysis flag.

extraOptions Optional<IReadOnlyDictionary<string, object>>

The extra options.

keyVaultClient Optional<IMongoClient>

The keyVault client.

schemaMap Optional<IReadOnlyDictionary<string, BsonDocument>>

The schema map.

tlsOptions Optional<IReadOnlyDictionary<string, SslSettings>>

The tls options.

encryptedFieldsMap Optional<IReadOnlyDictionary<string, BsonDocument>>

The encryptedFields map.

Returns

AutoEncryptionOptions

A new instance of AutoEncryptionOptions.