Table of Contents

Method With

Namespace
MongoDB.Driver.Encryption
Assembly
MongoDB.Driver.dll

With(Optional<IReadOnlyList<string>>, Optional<BsonDocument>, Optional<BsonBinaryData>)

Returns a new DataKeyOptions instance with some settings changed.

public DataKeyOptions With(Optional<IReadOnlyList<string>> alternateKeyNames = default, Optional<BsonDocument> masterKey = default, Optional<BsonBinaryData> keyMaterial = default)

Parameters

alternateKeyNames Optional<IReadOnlyList<string>>

The alternate key names.

masterKey Optional<BsonDocument>

The master key.

keyMaterial Optional<BsonBinaryData>

The key material.

Returns

DataKeyOptions

A new DataKeyOptions instance.