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.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public EncryptOptions With(
	Optional<string> algorithm = default,
	Optional<string> alternateKeyName = default,
	Optional<Guid?> keyId = 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.

Return Value

Type: EncryptOptions
A new EncryptOptions instance.
See Also