| ICryptographyContextImportAsync Method |
Asynchronously imports the public certificates or keys from the specified stream.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax Task ImportAsync(
Stream stream,
CancellationToken cancellationToken = default
)
Parameters
- stream Stream
- The raw certificate or key data.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Exceptions Remarks
Asynchronously imports the public certificates or keys from the specified stream.
See Also