ClientEncryptionOptionsWith Method |
Returns a new ClientEncryptionOptions instance with some settings changed.
Namespace:
MongoDB.Driver.Encryption
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
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
)
Public Function With (
Optional keyVaultClient As Optional(Of IMongoClient) = Nothing,
Optional keyVaultNamespace As Optional(Of CollectionNamespace) = Nothing,
Optional kmsProviders As Optional(Of IReadOnlyDictionary(Of String, IReadOnlyDictionary(Of String, Object))) = Nothing,
Optional tlsOptions As Optional(Of IReadOnlyDictionary(Of String, SslSettings)) = Nothing
) As ClientEncryptionOptions
member With :
?keyVaultClient : Optional<IMongoClient> *
?keyVaultNamespace : Optional<CollectionNamespace> *
?kmsProviders : Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, Object>>> *
?tlsOptions : Optional<IReadOnlyDictionary<string, SslSettings>>
(* Defaults:
let _keyVaultClient = defaultArg keyVaultClient new Optional<IMongoClient>()
let _keyVaultNamespace = defaultArg keyVaultNamespace new Optional<CollectionNamespace>()
let _kmsProviders = defaultArg kmsProviders new Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, Object>>>()
let _tlsOptions = defaultArg tlsOptions new Optional<IReadOnlyDictionary<string, SslSettings>>()
*)
-> ClientEncryptionOptions
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:
ClientEncryptionOptionsA new ClientEncryptionOptions instance.
See Also