| DefaultSecureMimeContextImportAsync(Stream, Boolean, CancellationToken) Method |
Asynchronously import a DER-encoded certificate stream.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax public Task ImportAsync(
Stream stream,
bool trusted,
CancellationToken cancellationToken = default
)
Parameters
- stream Stream
- The raw certificate(s).
- trusted Boolean
- true if the certificates are trusted; othewrwise, false.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Exceptions Remarks
Asynchronously imports the certificate(s).
See Also