EncryptOptionsWith Method |
Returns a new EncryptOptions instance with some settings changed.
Namespace:
MongoDB.Driver.Encryption
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax public EncryptOptions With(
Optional<string> algorithm = default,
Optional<string> alternateKeyName = default,
Optional<Guid?> keyId = default,
Optional<long?> contentionFactor = default,
Optional<string> queryType = default,
Optional<RangeOptions> rangeOptions = 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,
Optional contentionFactor As Optional(Of Long?) = Nothing,
Optional queryType As Optional(Of String) = Nothing,
Optional rangeOptions As Optional(Of RangeOptions) = Nothing
) As EncryptOptions
member With :
?algorithm : Optional<string> *
?alternateKeyName : Optional<string> *
?keyId : Optional<Nullable<Guid>> *
?contentionFactor : Optional<Nullable<int64>> *
?queryType : Optional<string> *
?rangeOptions : Optional<RangeOptions>
(* Defaults:
let _algorithm = defaultArg algorithm new Optional<string>()
let _alternateKeyName = defaultArg alternateKeyName new Optional<string>()
let _keyId = defaultArg keyId new Optional<Nullable<Guid>>()
let _contentionFactor = defaultArg contentionFactor new Optional<Nullable<int64>>()
let _queryType = defaultArg queryType new Optional<string>()
let _rangeOptions = defaultArg rangeOptions new Optional<RangeOptions>()
*)
-> 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. - contentionFactor (Optional)
- Type: MongoDB.DriverOptionalNullableInt64
[Beta] The contention factor. - queryType (Optional)
- Type: MongoDB.DriverOptionalString
[Beta] The query type. - rangeOptions (Optional)
- Type: MongoDB.DriverOptionalRangeOptions
The range options.
Return Value
Type:
EncryptOptionsA new EncryptOptions instance.
See Also