Open |
public override MimePart Encrypt( IEnumerable<MailboxAddress> recipients, Stream content, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | recipients is null. -or- content is null. |
ArgumentException | One or more of the recipient keys cannot be used for encrypting. -or- No recipients were specified. |
OperationCanceledException | The operation was canceled via the cancellation token. |
PublicKeyNotFoundException | A public key could not be found for one or more of the recipients. |