OlMarkInterval Enumeration

Specifies the time period for which an Outlook item is marked as a task.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
Public Enumeration OlMarkInterval
'Usage
Dim instance As OlMarkInterval
public enum OlMarkInterval

Members

Member name Description
olMarkToday Mark the task due today.
olMarkTomorrow Mark the task due tomorrow.
olMarkThisWeek Mark the task due this week.
olMarkNextWeek Mark the task due next week.
olMarkNoDate Mark the task due with no date.
olMarkComplete Mark the task as complete.

Remarks

This enumeration is used by the MarkAsTask method for the following Outlook items:

Depending on the value chosen, the following properties are set to the specified default values.

Enumeration value

Property values

olMarkComplete

TaskCompletedDate is set to the current date and time (Now in Visual Basic) if the item has been marked as a task. TaskCompletedDate is set to the empty date value (#1/1/4501#) if the item has not been marked as a task, or if the task has already been marked complete.

olMarkNoDate

IsMarkedAsTask is set to True. TaskSubject is set to the value of the Subject property for the Outlook item. TaskStartDate, TaskDueDate, and TaskCompletedDate are set to Nothing (a null reference (Nothing in Visual Basic) in C#).ToDoTaskOrdinal is set to the current date and time (Now in Visual Basic).

olMarkNextWeek

IsMarkedAsTask is set to True. TaskSubject is set to the value of the Subject property for the Outlook item. TaskStartDate is set to the first working day of next week. TaskDueDate is set to the last working day of next week. TaskCompletedDate is set to Nothing (a null reference (Nothing in Visual Basic) in C#).ToDoTaskOrdinal is set to the current date and time (Now in Visual Basic).

olMarkThisWeek

IsMarkedAsTask is set to True. TaskSubject is set to the value of the Subject property for the Outlook item. TaskStartDate is set to a date two working days ahead of the current date. If that value would exceed the value of TaskDueDate, then TaskStartDate is set to the value of TaskDueDate. TaskDueDate is set to the last working day of the current week. TaskCompletedDate is set to Nothing (a null reference (Nothing in Visual Basic) in C#).ToDoTaskOrdinal is set to the current date and time (Now in Visual Basic).

olMarkToday

IsMarkedAsTask is set to True. TaskSubject is set to the value of the Subject property for the Outlook item. TaskStartDate and TaskDueDate are set to the current date. TaskCompletedDate is set to Nothing (a null reference (Nothing in Visual Basic) in C#). ToDoTaskOrdinal is set to the current date and time (Now in Visual Basic).

olMarkTomorrow

IsMarkedAsTask is set to True. TaskSubject is set to the value of the Subject property for the Outlook item. TaskStartDate and TaskDueDate are set to one day after the current date. TaskCompletedDate is set to Nothing (a null reference (Nothing in Visual Basic) in C#). ToDoTaskOrdinal is set to the current date and time (Now in Visual Basic).

See Also

Reference

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Flag Mail Items from a Manager for Follow-Up