Open Pgp ContextExport Async(IEnumerablePgpPublicKey, Cancellation Token) Method
Asynchronously export the specified public keys.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
A new MimePart instance containing the exported public keys.
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public Task<MimePart> ExportAsync(
IEnumerable<PgpPublicKey> keys,
CancellationToken cancellationToken = default
)Parameters
- keys IEnumerablePgpPublicKey
- The public keys to export.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskMimePartA new MimePart instance containing the exported public keys.
Remarks
Asynchronously exports the specified public keys.
Exceptions
| ArgumentNullException | keys is . |
| OperationCanceledException | The operation was canceled via the cancellation token. |