Save(Stream, TaskSaveFormat)
Saves the task to a stream in the specified format. Only MSG is supported.
public void Save(Stream stream, TaskSaveFormat saveFormat)
| Parameter | Type | Description |
|---|
| stream | Stream | The stream to write to. |
| saveFormat | TaskSaveFormat | The format. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null. |
| NotSupportedException | stream does not support writing. |
| NotSupportedException | saveFormat is not Msg. |
See Also
Save(string, TaskSaveFormat)
Saves the task to a file in the specified format. Only MSG is supported.
public void Save(string filePath, TaskSaveFormat saveFormat)
| Parameter | Type | Description |
|---|
| filePath | String | The path of the file to write. |
| saveFormat | TaskSaveFormat | The format. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty. |
| NotSupportedException | saveFormat is not Msg. |
See Also
Save(string)
Saves this MapiTask to the given file.
public void Save(string filePath)
| Parameter | Type | Description |
|---|
| filePath | String | A file name. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty. |
See Also
Save(Stream)
Saves this MapiTask to the given stream.
public void Save(Stream stream)
| Parameter | Type | Description |
|---|
| stream | Stream | A stream to save to. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null. |
| NotSupportedException | stream does not support writing. |
See Also