ICryptography ContextCan Sign Method
Check whether a particular mailbox address can be used for signing.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
if the mailbox address can be used for signing; otherwise, .
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
bool CanSign(
MailboxAddress signer,
CancellationToken cancellationToken = default
)Parameters
- signer MailboxAddress
- The signer.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
Booleanif the mailbox address can be used for signing; otherwise, .
Remarks
Checks whether as particular mailbocx address can be used for signing.
Exceptions
| ArgumentNullException | signer is . |
| OperationCanceledException | The operation was canceled via the cancellation token. |