Save(Stream)
Saves the task to a stream in iCalendar (ICS) format.
public virtual void Save(Stream stream)
| Parameter | Type | Description |
|---|
| stream | Stream | The stream to write to. |
See Also
Save(string)
Saves the task to an iCalendar (ICS) file.
public virtual void Save(string filePath)
| Parameter | Type | Description |
|---|
| filePath | String | The path of the file to create. An existing file is overwritten. |
See Also
Save(string, TaskSaveOptions)
Saves the task to a file with the specified options.
public virtual void Save(string filePath, TaskSaveOptions saveOptions)
| Parameter | Type | Description |
|---|
| filePath | String | The path of the file to create. An existing file is overwritten. |
| saveOptions | TaskSaveOptions | The save options. Their type, TaskIcsSaveOptions or TaskMsgSaveOptions, selects the format; null saves in iCalendar format. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty. |
See Also
Save(Stream, TaskSaveOptions)
Saves the task to a stream with the specified options.
public virtual void Save(Stream stream, TaskSaveOptions saveOptions)
| Parameter | Type | Description |
|---|
| stream | Stream | The stream to write to. |
| saveOptions | TaskSaveOptions | The save options. Their type, TaskIcsSaveOptions or TaskMsgSaveOptions, selects the format; null saves in iCalendar format. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null. |
See Also