Click or drag to resize

EncryptOptions Constructor (String, OptionalString, OptionalNullableGuid, OptionalNullableInt64, OptionalString, OptionalRangeOptions)

Initializes a new instance of the EncryptOptions class.

Namespace:  MongoDB.Driver.Encryption
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public EncryptOptions(
	string algorithm,
	Optional<string> alternateKeyName = default,
	Optional<Guid?> keyId = default,
	Optional<long?> contentionFactor = default,
	Optional<string> queryType = default,
	Optional<RangeOptions> rangeOptions = default
)

Parameters

algorithm
Type: SystemString
The encryption algorithm.
alternateKeyName (Optional)
Type: MongoDB.DriverOptionalString
The alternate key name.
keyId (Optional)
Type: MongoDB.DriverOptionalNullableGuid
The key Id.
contentionFactor (Optional)
Type: MongoDB.DriverOptionalNullableInt64
The contention factor.
queryType (Optional)
Type: MongoDB.DriverOptionalString
The query type.
rangeOptions (Optional)
Type: MongoDB.DriverOptionalRangeOptions
The range options.
See Also