SaveAsync(Stream, TaskSaveFormat, CancellationToken)
Saves this MapiTask to the given stream using specified format asynchronously. The supported save format is MSG.
public Task SaveAsync(Stream stream, TaskSaveFormat saveFormat, CancellationToken token = default)
| Parameter | Type | Description |
|---|
| stream | Stream | A stream to save to. |
| saveFormat | TaskSaveFormat | A save format. |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null. |
| NotSupportedException | stream does not support writing. |
| NotSupportedException | The specified format is not supported. |
See Also
SaveAsync(string, TaskSaveFormat, CancellationToken)
Saves this MapiTask into file using specified format asynchronously. The supported save format is MSG.
public Task SaveAsync(string filePath, TaskSaveFormat saveFormat, CancellationToken token = default)
| Parameter | Type | Description |
|---|
| filePath | String | A file name. |
| saveFormat | TaskSaveFormat | A save format. |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty. |
| NotSupportedException | some save option is not supported |
See Also
SaveAsync(Stream, CancellationToken)
Saves this MapiTask to the given stream asynchronously. The supported save format is MSG.
public Task SaveAsync(Stream stream, CancellationToken token = default)
| Parameter | Type | Description |
|---|
| stream | Stream | A stream to save to. |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null. |
| NotSupportedException | stream does not support writing. |
See Also
SaveAsync(string, CancellationToken)
Saves this MapiTask into file asynchronously. The supported save format is MSG.
public Task SaveAsync(string filePath, CancellationToken token = default)
| Parameter | Type | Description |
|---|
| filePath | String | A file name. |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty. |
See Also