Method With
- Namespace
- MongoDB.Driver.Encryption
- Assembly
- MongoDB.Driver.Encryption.dll
With(Optional<IMongoClient>, Optional<CollectionNamespace>, Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, object>>>, Optional<IReadOnlyDictionary<string, SslSettings>>)
Returns a new ClientEncryptionOptions instance with some settings changed.
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<IMongoClient>The key vault client.
keyVaultNamespace
Optional<CollectionNamespace>The key vault namespace.
kmsProviders
Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, object>>>The KMS providers.
tlsOptions
Optional<IReadOnlyDictionary<string, SslSettings>>The tls options.
Returns
- ClientEncryptionOptions
A new ClientEncryptionOptions instance.