Click or drag to resize
MimeKit

GnuPGContextImport(PgpSecretKeyRingBundle, CancellationToken) Method

Import a secret pgp keyring bundle.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
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.
Exceptions
ExceptionCondition
ArgumentNullExceptionbundle is null.
IOException An error occured while saving the secret key-ring bundle.
OperationCanceledException The operation was canceled via the cancellation token.
Remarks
Imports a secret pgp keyring bundle.
See Also