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