Method With

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.Encryption

Assembly

MongoDB.Driver.Encryption.dll

With(Optional<IReadOnlyList>, Optional, Optional)

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.