Mime |
public static Task<MimeEntity> LoadAsync( ContentType contentType, Stream content, CancellationToken cancellationToken = default )
| Exception | Condition |
|---|---|
| ArgumentNullException | contentType is . -or- content is . |
| OperationCanceledException | The operation was canceled via the cancellation token. |
| FormatException | There was an error parsing the entity. |
| IOException | An I/O error occurred. |