EncryptOptionsWith Method |
Returns a new EncryptOptions instance with some settings changed.
Namespace:
MongoDB.Driver.Encryption
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax public EncryptOptions With(
Optional<string> algorithm = default,
Optional<string> alternateKeyName = default,
Optional<Guid?> keyId = default
)
Public Function With (
Optional algorithm As Optional(Of String) = Nothing,
Optional alternateKeyName As Optional(Of String) = Nothing,
Optional keyId As Optional(Of Guid?) = Nothing
) As EncryptOptions
member With :
?algorithm : Optional<string> *
?alternateKeyName : Optional<string> *
?keyId : Optional<Nullable<Guid>>
(* Defaults:
let _algorithm = defaultArg algorithm new Optional<string>()
let _alternateKeyName = defaultArg alternateKeyName new Optional<string>()
let _keyId = defaultArg keyId new Optional<Nullable<Guid>>()
*)
-> EncryptOptions
Parameters
- algorithm (Optional)
- Type: MongoDB.DriverOptionalString
The encryption algorithm. - alternateKeyName (Optional)
- Type: MongoDB.DriverOptionalString
The alternate key name. - keyId (Optional)
- Type: MongoDB.DriverOptionalNullableGuid
The keyId.
Return Value
Type:
EncryptOptionsA new EncryptOptions instance.
See Also