Task.Save

Save(Stream)

Saves the task to a stream in iCalendar (ICS) format.

public virtual void Save(Stream stream)
ParameterTypeDescription
streamStreamThe stream to write to.

See Also


Save(string)

Saves the task to an iCalendar (ICS) file.

public virtual void Save(string filePath)
ParameterTypeDescription
filePathStringThe 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)
ParameterTypeDescription
filePathStringThe path of the file to create. An existing file is overwritten.
saveOptionsTaskSaveOptionsThe save options. Their type, TaskIcsSaveOptions or TaskMsgSaveOptions, selects the format; null saves in iCalendar format.

Exceptions

exceptioncondition
ArgumentExceptionfilePath 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)
ParameterTypeDescription
streamStreamThe stream to write to.
saveOptionsTaskSaveOptionsThe save options. Their type, TaskIcsSaveOptions or TaskMsgSaveOptions, selects the format; null saves in iCalendar format.

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null.

See Also