Gnu PGContextGet Public Key Ring Async Method
Asynchronously get the public keyring that contains the specified key.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The public keyring that contains the specified key or if the keyring could not be found.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
protected override 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.
Remarks
Gets the public keyring that contains the specified key.
Exceptions
| OperationCanceledException | The operation was cancelled. |