![]() | Windows |
public override Task<ApplicationPkcs7Mime> EncryptAsync( CmsRecipientCollection recipients, Stream content, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | recipients is . -or- content is . |
ArgumentException | recipients is empty. |
OperationCanceledException | The operation was canceled via the cancellation token. |
CryptographicException | An error occurred in the cryptographic message syntax subsystem. |