Open Pgp ContextImport(PgpPublicKeyRingBundle, Cancellation Token) Method
Import the specified public keyring bundle.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public abstract void Import(
PgpPublicKeyRingBundle bundle,
CancellationToken cancellationToken = default
)Parameters
- bundle PgpPublicKeyRingBundle
- The bundle of public keyrings to import.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Remarks
Imports the specified public keyring bundle.
Exceptions
| ArgumentNullException | bundle is . |
| IOException | An error occured while saving the public key-ring. |
| OperationCanceledException | The operation was canceled via the cancellation token. |