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.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
Syntax
public AutoEncryptionOptions With(
	Optional<CollectionNamespace> keyVaultNamespace = null,
	Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, Object>>> kmsProviders = null,
	Optional<bool> bypassAutoEncryption = null,
	Optional<IReadOnlyDictionary<string, Object>> extraOptions = null,
	Optional<IMongoClient> keyVaultClient = null,
	Optional<IReadOnlyDictionary<string, BsonDocument>> schemaMap = null
)

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.
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.

Return Value

Type: AutoEncryptionOptions
A new instance of AutoEncryptionOptions.
See Also