Class TaskIcsSaveOptions

TaskIcsSaveOptions class

Options for saving a task in iCalendar (ICS) format.

public sealed class TaskIcsSaveOptions : TaskSaveOptions

Constructors

NameDescription
TaskIcsSaveOptions()Initializes a new instance of the TaskIcsSaveOptions class with default settings.

Properties

NameDescription
SaveFormat { get; }Gets the format to which the task will be saved.

Remarks

Use this class when saving a Task to an iCalendar file. It inherits from TaskSaveOptions and specifies the ICS format.

The ICS format stores the task as a VTODO component, so properties such as the subject, the start and due dates, the status and the percentage complete are preserved in a form that any iCalendar-aware application can read.

The class has no settings of its own beyond the inherited SaveFormat; pass a new instance wherever a TaskSaveOptions is expected.

Examples

[C#]

var task = new Task();
task.Subject = "Review documentation";

// Save task as ICS file
task.Save("task.ics", new TaskIcsSaveOptions());

See Also