Cryptography |
public abstract Task<MimePart> EncryptAsync( IEnumerable<MailboxAddress> recipients, Stream content, CancellationToken cancellationToken = default )
| Exception | Condition |
|---|---|
| ArgumentNullException | recipients is . -or- content is . |
| OperationCanceledException | The operation was canceled via the cancellation token. |
| CertificateNotFoundException | A certificate could not be found for one or more of the recipients. |