Click or drag to resize
MimeKit

SecureMimeContextImport(X509Certificate2, CancellationToken) Method

Import a certificate.

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

Parameters

certificate  X509Certificate2
The certificate.
cancellationToken  CancellationToken  (Optional)
The cancellation token.
Exceptions
ExceptionCondition
ArgumentNullExceptioncertificate is null.
OperationCanceledException The operation was cancelled via the cancellation token.
Remarks
Imports a certificate.
See Also