SecureMimeContextDecompressAsync Method

Asynchronously decompress the specified stream.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public virtual 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.

Implements

ISecureMimeContextDecompressAsync(Stream, CancellationToken)

Remarks

Asynchronously decompresses the specified stream.

Exceptions

ArgumentNullException stream 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.

See Also