Application |
public static Task<ApplicationPkcs7Mime> CompressAsync( SecureMimeContext ctx, MimeEntity entity, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | ctx is null. -or- entity is null. |
ObjectDisposedException | entity has been disposed. |
OperationCanceledException | The operation was canceled via the cancellation token. |
CmsException | An error occurred in the cryptographic message syntax subsystem. |
Asynchronously compresses the specified entity using the specified SecureMimeContext.
Caution |
---|
Most mail clients, even among those that support S/MIME, do not support compression. |