Click or drag to resize

ClientEncryptionOptions.With Method

Returns a new ClientEncryptionOptions instance with some settings changed.

Namespace:  MongoDB.Driver.Encryption
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
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.Driver.Optional<IMongoClient>
The key vault client.
keyVaultNamespace (Optional)
Type: MongoDB.Driver.Optional<CollectionNamespace>
The key vault namespace.
kmsProviders (Optional)
Type: MongoDB.Driver.Optional<IReadOnlyDictionary<String, IReadOnlyDictionary<String, Object>>>
The KMS providers.

Return Value

Type: ClientEncryptionOptions
A new ClientEncryptionOptions instance.
See Also