Open Pgp ContextImport(PgpSecretKeyRing, Cancellation Token) Method
Import a secret pgp keyring.
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(
PgpSecretKeyRing keyring,
CancellationToken cancellationToken = default
)Parameters
- keyring PgpSecretKeyRing
- The secret key-ring to import.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Remarks
Imports a secret pgp keyring.
Exceptions
| ArgumentNullException | keyring is . |
| IOException | An error occured while saving the secret key-ring. |
| OperationCanceledException | The operation was canceled via the cancellation token. |