Click or drag to resize
MimeKit

ApplicationPkcs7MimeDecompressAsync(SecureMimeContext, CancellationToken) Method

Asynchronously decompress the compressed-data.

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

Parameters

ctx  SecureMimeContext
The S/MIME context to use for decompressing.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskMimeEntity
The decompressed MimeEntity.

Implements

IApplicationPkcs7MimeDecompressAsync(SecureMimeContext, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionctx is null.
InvalidOperationException The "smime-type" parameter on the Content-Type header is not "compressed-data".
ObjectDisposedException The ApplicationPkcs7Mime has been disposed.
OperationCanceledException The operation was canceled via the cancellation token.
CmsException An error occurred in the cryptographic message syntax subsystem.
Remarks
Asynchronously decompresses the compressed-data using the specified SecureMimeContext.
See Also