Mime |
public static Task<MimeEntity> LoadAsync( string fileName, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | fileName is null. |
ArgumentException | fileName is a zero-length string, contains only white space, or contains one or more invalid characters. |
DirectoryNotFoundException | fileName is an invalid file path. |
FileNotFoundException | The specified file path could not be found. |
UnauthorizedAccessException | The user does not have access to read the specified file. |
OperationCanceledException | The operation was canceled via the cancellation token. |
FormatException | There was an error parsing the entity. |
IOException | An I/O error occurred. |