| IMimeMessageWriteToAsync(String, CancellationToken) Method |
Asynchronously write the message to the specified file.
Namespace: MimeKitAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax Task WriteToAsync(
string fileName,
CancellationToken cancellationToken = default
)
Parameters
- fileName String
- The file.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn awaitable task.
Exceptions Remarks
Asynchronously writes the message to the specified file using the default formatting options.
See Also