Open Pgp ContextGet Public Key Ring Method
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 abstract PgpPublicKeyRing? GetPublicKeyRing(
long keyId,
CancellationToken cancellationToken
)Parameters
- keyId Int64
- The public key identifier.
- cancellationToken CancellationToken
- The cancellation token.
Return Value
PgpPublicKeyRingThe 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 canceled via the cancellation token. |