Click or drag to resize

EncryptOptions.With Method

Returns a new EncryptOptions instance with some settings changed.

Namespace:  MongoDB.Driver.Encryption
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public EncryptOptions With(
	Optional<string> algorithm = null,
	Optional<string> alternateKeyName = null,
	Optional<Nullable<Guid>> keyId = null,
	Optional<Nullable<long>> contentionFactor = null,
	Optional<string> queryType = null,
	Optional<RangeOptions> rangeOptions = null
)

Parameters

algorithm (Optional)
Type: MongoDB.Driver.Optional<String>
The encryption algorithm.
alternateKeyName (Optional)
Type: MongoDB.Driver.Optional<String>
The alternate key name.
keyId (Optional)
Type: MongoDB.Driver.Optional<Nullable<Guid>>
The keyId.
contentionFactor (Optional)
Type: MongoDB.Driver.Optional<Nullable<Int64>>
The contention factor.
queryType (Optional)
Type: MongoDB.Driver.Optional<String>
The query type.
rangeOptions (Optional)
Type: MongoDB.Driver.Optional<RangeOptions>
The range options.

Return Value

Type: EncryptOptions
A new EncryptOptions instance.
See Also