ClientEncryptionDecryptAsync Method |
Decrypts the specified value.
Namespace:
MongoDB.Driver.Encryption
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax public Task<BsonValue> DecryptAsync(
BsonBinaryData value,
CancellationToken cancellationToken = null
)
Public Function DecryptAsync (
value As BsonBinaryData,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of BsonValue)
member DecryptAsync :
value : BsonBinaryData *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken null
*)
-> Task<BsonValue>
Parameters
- value
- Type: MongoDB.BsonBsonBinaryData
The value. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskBsonValueThe decrypted value.
See Also