 | OpenPgpContextGetPublicKeyRingAsync Method |
Asynchronously get the public keyring that contains the specified key asynchronously.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntaxprotected abstract Task<PgpPublicKeyRing> GetPublicKeyRingAsync(
long keyId,
CancellationToken cancellationToken
)
Parameters
- keyId Int64
- The public key identifier.
- cancellationToken CancellationToken
- The cancellation token.
Return Value
TaskPgpPublicKeyRingThe public keyring that contains the specified key or
if the keyring could not be found.
Exceptions
RemarksAsynchronously gets the public keyring that contains the specified key.
See Also