ClientEncryptionOptionsWith Method |
Returns a new ClientEncryptionOptions instance with some settings changed.
Namespace:
MongoDB.Driver.Encryption
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax public ClientEncryptionOptions With(
Optional<IMongoClient> keyVaultClient = null,
Optional<CollectionNamespace> keyVaultNamespace = null,
Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, Object>>> kmsProviders = null
)
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
) As ClientEncryptionOptions
member With :
?keyVaultClient : Optional<IMongoClient> *
?keyVaultNamespace : Optional<CollectionNamespace> *
?kmsProviders : Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, Object>>>
(* Defaults:
let _keyVaultClient = defaultArg keyVaultClient null
let _keyVaultNamespace = defaultArg keyVaultNamespace null
let _kmsProviders = defaultArg kmsProviders null
*)
-> 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.
Return Value
Type:
ClientEncryptionOptionsA new ClientEncryptionOptions instance.
See Also