Multipart |
public static Task<MultipartSigned> CreateAsync( OpenPgpContext ctx, PgpSecretKey signer, DigestAlgorithm digestAlgo, MimeEntity entity, CancellationToken cancellationToken = default )
| Exception | Condition |
|---|---|
| ArgumentNullException | ctx is . -or- signer is . -or- entity is . |
| ArgumentException | signer cannot be used for signing. |
| ArgumentOutOfRangeException | The digestAlgo was out of range. |
| NotSupportedException | The digestAlgo is not supported. |
| ObjectDisposedException | entity has been disposed. |
| OperationCanceledException | The operation was canceled via the cancellation token. |
| PgpException | An error occurred in the OpenPGP subsystem. |