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
masterKeyOptional<BsonDocument>The master key.
providerOptional<string>The provider name.
Returns
- RewrapManyDataKeyOptions
 A new DataKeyOptions instance.