![]() | Application |
public static Task<ApplicationPkcs7Mime> EncryptAsync( SecureMimeContext ctx, CmsRecipientCollection recipients, MimeEntity entity, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | ctx is . -or- recipients is . -or- entity is . |
ObjectDisposedException | entity has been disposed. |
OperationCanceledException | The operation was canceled via the cancellation token. |
CmsException | An error occurred in the cryptographic message syntax subsystem. |