DataKeyOptionsWith Method |
Returns a new DataKeyOptions instance with some settings changed.
Namespace:
MongoDB.Driver.Encryption
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax public DataKeyOptions With(
Optional<IReadOnlyList<string>> alternateKeyNames = null,
Optional<BsonDocument> masterKey = null,
Optional<BsonBinaryData> keyMaterial = null
)
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 null
let _masterKey = defaultArg masterKey null
let _keyMaterial = defaultArg keyMaterial null
*)
-> 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