Click or drag to resize
MimeKit

GnuPGContextGetPublicKey Method

Get the public key associated with the mailbox address.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntax
C#
protected virtual PgpPublicKey GetPublicKey(
	MailboxAddress mailbox
)

Parameters

mailbox  MailboxAddress
The mailbox.

Return Value

PgpPublicKey
The public encryption key.
Exceptions
ExceptionCondition
ArgumentNullExceptionmailbox is .
PublicKeyNotFoundException The public key for the specified mailbox could not be found.
Remarks
Gets a valid public key associated with the mailbox address that can be used for encryption.
See Also