Click or drag to resize
MimeKit

SecureMimeContextImport Method (X509Certificate, CancellationToken)

Import the specified certificate.

Namespace:  MimeKit.Cryptography
Assembly:  MimeKit (in MimeKit.dll) Version: 3.0.0
Syntax
C#
public abstract void Import(
	X509Certificate certificate,
	CancellationToken cancellationToken = default
)

Parameters

certificate
Type: X509Certificate
The certificate.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation token.
Exceptions
ExceptionCondition
ArgumentNullExceptioncertificate is null.
OperationCanceledException The operation was cancelled via the cancellation token.
Remarks
Imports the specified certificate.
See Also