Click or drag to resize

DataKeyOptionsWith Method

Returns a new DataKeyOptions instance with some settings changed.

Namespace:  MongoDB.Driver.Encryption
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public DataKeyOptions With(
	Optional<IReadOnlyList<string>> alternateKeyNames = default,
	Optional<BsonDocument> masterKey = default
)

Parameters

alternateKeyNames (Optional)
Type: MongoDB.DriverOptionalIReadOnlyListString
The alternate key names.
masterKey (Optional)
Type: MongoDB.DriverOptionalBsonDocument
The master key.

Return Value

Type: DataKeyOptions
A new DataKeyOptions instance.
See Also