Click or drag to resize

EncryptOptionsWith Method

Returns a new EncryptOptions instance with some settings changed.

Namespace:  MongoDB.Driver.Encryption
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
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.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
The contention factor.
queryType (Optional)
Type: MongoDB.DriverOptionalString
The query type.
rangeOptions (Optional)
Type: MongoDB.DriverOptionalRangeOptions
The range options.

Return Value

Type: EncryptOptions
A new EncryptOptions instance.
See Also