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