GnuPGContextGetPublicKeyRingAsync 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
C#
protected override Task<PgpPublicKeyRing?> GetPublicKeyRingAsync(
	long keyId,
	CancellationToken cancellationToken
)

Parameters

keyId  Int64
The public key identifier.
cancellationToken  CancellationToken
The cancellation token.

Return Value

TaskPgpPublicKeyRing
The 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.

See Also