ISecure Mime ContextDecompress To Async Method
Asynchronously decompress the specified stream to an output stream.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
An asynchronous task context.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
Task DecompressToAsync(
Stream stream,
Stream output,
CancellationToken cancellationToken = default
)Parameters
- stream Stream
- The stream to decompress.
- output Stream
- The output stream.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Remarks
Asynchronously decompresses the specified stream to an output stream.
Exceptions
| ArgumentNullException |
stream is . -or- output is . |
| OperationCanceledException | The operation was canceled via the cancellation token. |
| CmsException | An error occurred in the cryptographic message syntax subsystem. |
| FormatException | The expanded content exceeds MaxDecompressedSize. The output may contain partial data. |