Table of Contents

Method With

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

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

Returns a new DataKeyOptions instance with some settings changed.

public RewrapManyDataKeyOptions With(Optional<BsonDocument> masterKey = default, Optional<string> provider = default)

Parameters

masterKey Optional<BsonDocument>

The master key.

provider Optional<string>

The provider name.

Returns

RewrapManyDataKeyOptions

A new DataKeyOptions instance.