AutoEncryptionOptionsWith Method |
Namespace:
MongoDB.Driver.Encryption
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
Syntax public AutoEncryptionOptions With(
Optional<CollectionNamespace> keyVaultNamespace = default,
Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, Object>>> kmsProviders = default,
Optional<bool> bypassAutoEncryption = default,
Optional<bool?> bypassQueryAnalysis = default,
Optional<IReadOnlyDictionary<string, Object>> extraOptions = default,
Optional<IMongoClient> keyVaultClient = default,
Optional<IReadOnlyDictionary<string, BsonDocument>> schemaMap = default,
Optional<IReadOnlyDictionary<string, SslSettings>> tlsOptions = default,
Optional<IReadOnlyDictionary<string, BsonDocument>> encryptedFieldsMap = default
)
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 bypassQueryAnalysis 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,
Optional tlsOptions As Optional(Of IReadOnlyDictionary(Of String, SslSettings)) = Nothing,
Optional encryptedFieldsMap 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> *
?bypassQueryAnalysis : Optional<Nullable<bool>> *
?extraOptions : Optional<IReadOnlyDictionary<string, Object>> *
?keyVaultClient : Optional<IMongoClient> *
?schemaMap : Optional<IReadOnlyDictionary<string, BsonDocument>> *
?tlsOptions : Optional<IReadOnlyDictionary<string, SslSettings>> *
?encryptedFieldsMap : Optional<IReadOnlyDictionary<string, BsonDocument>>
(* Defaults:
let _keyVaultNamespace = defaultArg keyVaultNamespace new Optional<CollectionNamespace>()
let _kmsProviders = defaultArg kmsProviders new Optional<IReadOnlyDictionary<string, IReadOnlyDictionary<string, Object>>>()
let _bypassAutoEncryption = defaultArg bypassAutoEncryption new Optional<bool>()
let _bypassQueryAnalysis = defaultArg bypassQueryAnalysis new Optional<Nullable<bool>>()
let _extraOptions = defaultArg extraOptions new Optional<IReadOnlyDictionary<string, Object>>()
let _keyVaultClient = defaultArg keyVaultClient new Optional<IMongoClient>()
let _schemaMap = defaultArg schemaMap new Optional<IReadOnlyDictionary<string, BsonDocument>>()
let _tlsOptions = defaultArg tlsOptions new Optional<IReadOnlyDictionary<string, SslSettings>>()
let _encryptedFieldsMap = defaultArg encryptedFieldsMap new Optional<IReadOnlyDictionary<string, BsonDocument>>()
*)
-> 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. - bypassQueryAnalysis (Optional)
- Type: MongoDB.DriverOptionalNullableBoolean
[Beta] The bypass query analysis 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. - tlsOptions (Optional)
- Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, SslSettings
The tls options. - encryptedFieldsMap (Optional)
- Type: MongoDB.DriverOptionalIReadOnlyDictionaryString, BsonDocument
[Beta] The encryptedFields map.
Return Value
Type:
AutoEncryptionOptionsA new instance of
AutoEncryptionOptions.
See Also