ICryptography ContextDecrypt Method
Decrypt the specified encryptedData.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The decrypted MimeEntity.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
MimeEntity Decrypt(
Stream encryptedData,
CancellationToken cancellationToken = default
)Parameters
- encryptedData Stream
- The encrypted data.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
MimeEntityThe decrypted MimeEntity.
Remarks
Decrypts the specified encryptedData.
Exceptions
| ArgumentNullException | encryptedData is . |
| OperationCanceledException | The operation was cancelled via the cancellation token. |