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.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
Syntax
public EncryptOptions With(
	Optional<string> algorithm = default,
	Optional<string> alternateKeyName = default,
	Optional<Guid?> keyId = default,
	Optional<long?> contentionFactor = default,
	Optional<QueryType?> queryType = default
)

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.DriverOptionalNullableQueryType
[Beta] The query type.

Return Value

Type: EncryptOptions
A new EncryptOptions instance.
See Also