AutoEncryptionOptionsWith Method |
Namespace:
MongoDB.Driver.Encryption
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
Syntax public AutoEncryptionOptions With(
Optional<CollectionNamespace> keyVaultNamespace = null,
Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, Object>>> kmsProviders = null,
Optional<bool> bypassAutoEncryption = null,
Optional<IReadOnlyDictionary<string, Object>> extraOptions = null,
Optional<IMongoClient> keyVaultClient = null,
Optional<IReadOnlyDictionary<string, BsonDocument>> schemaMap = null
)
Public Function With (
Optional keyVaultNamespace As Optional(Of CollectionNamespace) = Nothing,
Optional kmsProviders As Optional(Of IReadOnlyDictionary(Of String, IReadOnlyDictionary(Of String, Object))) = Nothing,
Optional bypassAutoEncryption As Optional(Of Boolean) = Nothing,
Optional extraOptions As Optional(Of IReadOnlyDictionary(Of String, Object)) = Nothing,
Optional keyVaultClient As Optional(Of IMongoClient) = Nothing,
Optional schemaMap As Optional(Of IReadOnlyDictionary(Of String, BsonDocument)) = Nothing
) As AutoEncryptionOptions
member With :
?keyVaultNamespace : Optional<CollectionNamespace> *
?kmsProviders : Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, Object>>> *
?bypassAutoEncryption : Optional<bool> *
?extraOptions : Optional<IReadOnlyDictionary<string, Object>> *
?keyVaultClient : Optional<IMongoClient> *
?schemaMap : Optional<IReadOnlyDictionary<string, BsonDocument>>
(* Defaults:
let _keyVaultNamespace = defaultArg keyVaultNamespace null
let _kmsProviders = defaultArg kmsProviders null
let _bypassAutoEncryption = defaultArg bypassAutoEncryption null
let _extraOptions = defaultArg extraOptions null
let _keyVaultClient = defaultArg keyVaultClient null
let _schemaMap = defaultArg schemaMap null
*)
-> AutoEncryptionOptions
Parameters
- keyVaultNamespace (Optional)
- Type: MongoDB.DriverOptionalCollectionNamespace
The keyVault namespace. - kmsProviders (Optional)
- Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, IReadOnlyDictionaryString, Object
The kms providers. - bypassAutoEncryption (Optional)
- Type: MongoDB.DriverOptionalBoolean
The bypass auto encryption flag. - extraOptions (Optional)
- Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, Object
The extra options. - keyVaultClient (Optional)
- Type: MongoDB.DriverOptionalIMongoClient
The keyVault client. - schemaMap (Optional)
- Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, BsonDocument
The schema map.
Return Value
Type:
AutoEncryptionOptionsA new instance of
AutoEncryptionOptions.
See Also