WindowsSecureMimeContextImport(X509Certificate2, CancellationToken) Method

Import a certificate.

Definition

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

Parameters

certificate  X509Certificate2
The certificate.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Implements

ISecureMimeContextImport(X509Certificate2, CancellationToken)

Remarks

Imports a certificate into the AddressBook store.

Exceptions

ArgumentNullException certificate is .
OperationCanceledException The operation was cancelled via the cancellation token.

See Also