| ISecureMimeContextImportAsync(X509Certificate2, CancellationToken) Method |
Asynchronously import a certificate.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax Task ImportAsync(
X509Certificate2 certificate,
CancellationToken cancellationToken = default
)
Parameters
- certificate X509Certificate2
- The certificate.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Exceptions Remarks
Asynchronously imports a certificate.
See Also