Click or drag to resize

EncryptOptions Constructor (EncryptionAlgorithm, OptionalString, OptionalNullableGuid, OptionalNullableInt64, OptionalString)

Initializes a new instance of the EncryptOptions class.

Namespace:  MongoDB.Driver.Encryption
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.17.0+b316340e6cc3a8bfc8638dc31b54fbbfe41bfcb2
Syntax
public EncryptOptions(
	EncryptionAlgorithm algorithm,
	Optional<string> alternateKeyName = default,
	Optional<Guid?> keyId = default,
	Optional<long?> contentionFactor = default,
	Optional<string> queryType = default
)

Parameters

algorithm
Type: MongoDB.Driver.EncryptionEncryptionAlgorithm
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
[Beta] The contention factor.
queryType (Optional)
Type: MongoDB.DriverOptionalString
[Beta] The query type.
See Also