 | CryptographyContextCanSignAsync Method |
Asynchronously check whether or not a particular mailbox address can be used for signing.
Namespace:
MimeKit.Cryptography
Assembly:
MimeKit (in MimeKit.dll) Version: 3.0.0
Syntaxpublic virtual Task<bool> CanSignAsync(
MailboxAddress signer,
CancellationToken cancellationToken = default
)
Parameters
- signer
- Type: MimeKitMailboxAddress
The signer. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskBooleantrue if the mailbox address can be used for signing; otherwise,
false.
Exceptions
Remarks
Checks whether or not as particular mailbocx address can be used for signing.
See Also