Click or drag to resize
MimeKit

ISecureMimeContextDecompressAsync Method

Asynchronously decompress the specified stream.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
Task<MimeEntity> DecompressAsync(
	Stream stream,
	CancellationToken cancellationToken = default
)

Parameters

stream  Stream
The stream to decompress.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskMimeEntity
The decompressed mime part.
Exceptions
ExceptionCondition
ArgumentNullExceptionstream is null.
OperationCanceledException The operation was canceled via the cancellation token.
CmsException An error occurred in the cryptographic message syntax subsystem.
Remarks
Asynchronously decompresses the specified stream.
See Also