GnuPGContextImport(PgpSecretKeyRingBundle, CancellationToken) Method

Import a secret pgp keyring bundle.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public override void Import(
	PgpSecretKeyRingBundle bundle,
	CancellationToken cancellationToken = default
)

Parameters

bundle  PgpSecretKeyRingBundle
The bundle of secret keyrings to import.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Remarks

Imports a secret pgp keyring bundle.

Exceptions

ArgumentNullException bundle is .
IOException An error occured while saving the secret key-ring bundle.
OperationCanceledException The operation was canceled via the cancellation token.

See Also