 | MimeEntityWriteToAsync Method (String, CancellationToken) |
Asynchronously write the
MimeEntity to the specified file.
Namespace:
MimeKit
Assembly:
MimeKit (in MimeKit.dll) Version: 3.0.0
Syntaxpublic Task WriteToAsync(
string fileName,
CancellationToken cancellationToken = default
)
Parameters
- fileName
- Type: SystemString
The file. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskAn awaitable task.
Exceptions
Remarks
Asynchronously writes the entity to the specified file using the default formatting options.
See Also