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.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public ClientEncryptionOptions With(
	Optional<IMongoClient> keyVaultClient = default,
	Optional<CollectionNamespace> keyVaultNamespace = default,
	Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, Object>>> kmsProviders = default,
	Optional<IReadOnlyDictionary<string, SslSettings>> tlsOptions = default
)

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.
tlsOptions (Optional)
Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, SslSettings
The tls options.

Return Value

Type: ClientEncryptionOptions
A new ClientEncryptionOptions instance.
See Also