Click or drag to resize

AutoEncryptionOptionsWith Method

Returns a new instance of the AutoEncryptionOptions class.

Namespace:  MongoDB.Driver.Encryption
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
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)
Type: MongoDB.DriverOptionalCollectionNamespace
The keyVault namespace.
kmsProviders (Optional)
Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, IReadOnlyDictionaryString, Object
The kms providers.
bypassAutoEncryption (Optional)
Type: MongoDB.DriverOptionalBoolean
The bypass auto encryption flag.
bypassQueryAnalysis (Optional)
Type: MongoDB.DriverOptionalNullableBoolean
The bypass query analysis flag.
extraOptions (Optional)
Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, Object
The extra options.
keyVaultClient (Optional)
Type: MongoDB.DriverOptionalIMongoClient
The keyVault client.
schemaMap (Optional)
Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, BsonDocument
The schema map.
tlsOptions (Optional)
Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, SslSettings
The tls options.
encryptedFieldsMap (Optional)
Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, BsonDocument
The encryptedFields map.

Return Value

Type: AutoEncryptionOptions
A new instance of AutoEncryptionOptions.
See Also