|  | Bouncy | 
 Syntax
Syntaxpublic override Task<MimePart> EncryptAsync( IEnumerable<MailboxAddress> recipients, Stream content, CancellationToken cancellationToken = default )
 Exceptions
Exceptions| Exception | Condition | 
|---|---|
| ArgumentNullException | recipients is . -or- content is . | 
| ArgumentException | A certificate for one or more of the recipients could not be found. | 
| OperationCanceledException | The operation was canceled via the cancellation token. | 
| CertificateNotFoundException | A certificate could not be found for one or more of the recipients. | 
| CmsException | An error occurred in the cryptographic message syntax subsystem. | 
 Remarks
Remarks See Also
See Also