Enum TaskStatus
Contents
[
Hide
]TaskStatus enumeration
Defines how far work on a task has progressed.
public enum TaskStatus
Values
| Name | Value | Description |
|---|---|---|
| NotStarted | 0 | Work on the task has not started. The task is pending or scheduled for future work. |
| InProgress | 1 | Work on the task is in progress. The task is actively being worked on. |
| Complete | 2 | The task is complete. All required work has been finished. |
| Waiting | 3 | The task is waiting for someone else. It cannot proceed until external dependencies are resolved. |
| Deferred | 4 | Work on the task has been deferred. The task is postponed or delayed indefinitely. |
Remarks
These values track the completion state of a task throughout its lifecycle. Use the Status property to set or check the current status of a task.
Typical task progression follows: NotStarted → InProgress → Complete, though tasks may also be set to Waiting or Deferred as needed.
Examples
[C#]
var task = new Task();
task.Subject = "Review project proposal";
task.Status = TaskStatus.InProgress;
task.PercentComplete = 50.0f;
See Also
- namespace Aspose.Email.Calendar
- assembly Aspose.Email