Click or drag to resize

ClientEncryptionOptionsWith Method

Returns a new ClientEncryptionOptions instance with some settings changed.

Namespace:  MongoDB.Driver.Encryption
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
Syntax
public ClientEncryptionOptions With(
	Optional<IMongoClient> keyVaultClient = null,
	Optional<CollectionNamespace> keyVaultNamespace = null,
	Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, Object>>> kmsProviders = null
)

Parameters

keyVaultClient (Optional)
Type: MongoDB.DriverOptionalIMongoClient
The key vault client.
keyVaultNamespace (Optional)
Type: MongoDB.DriverOptionalCollectionNamespace
The key vault namespace.
kmsProviders (Optional)
Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, IReadOnlyDictionaryString, Object
The KMS providers.

Return Value

Type: ClientEncryptionOptions
A new ClientEncryptionOptions instance.
See Also