| SecureMimeContextCompressAsync Method |
Asynchronously compress the specified stream.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax public virtual Task<ApplicationPkcs7Mime> CompressAsync(
Stream stream,
CancellationToken cancellationToken = default
)
Parameters
- stream Stream
- The stream to compress.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskApplicationPkcs7MimeA new
ApplicationPkcs7Mime instance
containing the compressed content.
Exceptions Remarks
Asynchronously compresses the specified stream.
See Also