 | MimeEntityWriteToAsync(String, Boolean, CancellationToken) Method |
Asynchronously write the
MimeEntity to the specified file.
Namespace: MimeKitAssembly: MimeKit (in MimeKit.dll) Version: 4.0.0
Syntaxpublic Task WriteToAsync(
string fileName,
bool contentOnly,
CancellationToken cancellationToken = default
)
Request Example
Parameters
- fileName String
- The file.
- contentOnly Boolean
- true if only the content should be written; otherwise, false.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn awaitable task.
Exceptions
Remarks
Asynchronously writes the entity to the specified file using the default formatting options.
See Also