IMime |
Task WriteToAsync( FormatOptions options, string fileName, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | options is null. -or- fileName is null. |
ArgumentException | fileName is a zero-length string, contains only white space, or contains one or more invalid characters. |
ObjectDisposedException | The IMimeEntity has been disposed. |
OperationCanceledException | The operation was canceled via the cancellation token. |
DirectoryNotFoundException | fileName is an invalid file path. |
FileNotFoundException | The specified file path could not be found. |
UnauthorizedAccessException | The user does not have access to write to the specified file. |
IOException | An I/O error occurred. |