DataKeyOptionsWith Method |
Returns a new DataKeyOptions instance with some settings changed.
Namespace:
MongoDB.Driver.Encryption
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax public DataKeyOptions With(
Optional<IReadOnlyList<string>> alternateKeyNames = default,
Optional<BsonDocument> masterKey = default
)
Public Function With (
Optional alternateKeyNames As Optional(Of IReadOnlyList(Of String)) = Nothing,
Optional masterKey As Optional(Of BsonDocument) = Nothing
) As DataKeyOptions
member With :
?alternateKeyNames : Optional<IReadOnlyList<string>> *
?masterKey : Optional<BsonDocument>
(* Defaults:
let _alternateKeyNames = defaultArg alternateKeyNames new Optional<IReadOnlyList<string>>()
let _masterKey = defaultArg masterKey new Optional<BsonDocument>()
*)
-> DataKeyOptions
Parameters
- alternateKeyNames (Optional)
- Type: MongoDB.DriverOptionalIReadOnlyListString
The alternate key names. - masterKey (Optional)
- Type: MongoDB.DriverOptionalBsonDocument
The master key.
Return Value
Type:
DataKeyOptionsA new DataKeyOptions instance.
See Also