MapiTask

MapiTask class

Inherits: Aspose::Email::Mapi::MapiMessageItemBase

Represents a MAPI task item.

This class serves as a wrapper for MapiMessage to simplify the process of handling task information from MAPI properties. It provides a more intuitive interface for accessing and manipulating task data within the MAPI message.

The following example demonstrates how to get a MapiTask object from a MapiMessage .

var msg = MapiMessage.Load("task.msg");
 
// Check if the loaded message is a supported task type
if (msg.SupportedType == MapiItemType.Task)
{
 // Convert the MAPI message to a MapiTask object
    var mapiTask = (MapiTask)msg.ToMapiMessageItem();
 
 // Display some task info
    Console.WriteLine(mapiTask.Subject);
    Console.WriteLine(mapiTask.DueDate);
}
Dim msg = MapiMessage.Load("task.msg")
 
' Check if the loaded message is a supported task type
If msg.SupportedType = MapiItemType.Task Then
    ' Convert the MAPI message to a MapiTask object
    Dim mapiTask = DirectCast(msg.ToMapiMessageItem(), MapiTask)
 
 ' Display some task info
    Console.WriteLine(mapiTask.Subject)
    Console.WriteLine(mapiTask.DueDate)
End If

Constructors

NameDescription
MapiTask (3 overloads)Initializes a new instance of the MapiTask class.

Methods

NameDescription
ConvertToMapiMessageConverts the task object to mapi message
FromVTodo (4 overloads)Creates an instance of MapiTask from the specified stream.
get_AcceptanceStateGets the acceptance state of the task.
get_ActualEffortGets the number of minutes that the user actually spent working on a task.
get_AttachmentsGets the attachments collection.
get_DateCompletedGets the date when the user completed work on the task.
get_DueDateGets the date by which the user expects work on the task to be complete.
get_EstimatedEffortGets the number of minutes that the user expects to work on a task.
get_FlagsGets the indication flags of the Task object.
get_HistoryGets the type of change that was last made to the Task object.
get_LastUpdateGets the date and time of the most recent change made to the Task object.
get_ModeGets the assignment status of the Task object.
get_PercentCompleteGets the progress the user has made on a task.
get_PriorityGets the current Priority of the Task object.
get_RecurrenceGets the recurrence properties.
get_ReminderFileParameterSpecifies the full path of the sound that a client SHOULD play when the reminder becomes overdue.
get_ReminderSetGets a value indicating whether a reminder is set on the object
get_ReminderTimeGets the initial signal time for a reminder
get_StartDateGets the date on which the user expects work on the task to begin.
get_StateGets the current assignment state of the Task object.
get_StatusGets the status of the user’s progress on the task.
get_UsersGets information about task users.
GetsFlagsGets the flags.
GetUnderlyingMessageRetrieves the underlying MapiMessage object.
Save (2 overloads)Saves this MapiTask to the given stream using specified format.
set_AcceptanceStateSets the acceptance state of the task.
set_ActualEffortSets the number of minutes that the user actually spent working on a task.
set_DateCompletedSets the date when the user completed work on the task.
set_DueDateSets the date by which the user expects work on the task to be complete.
set_EstimatedEffortSets the number of minutes that the user expects to work on a task.
set_FlagsGets the indication flags of the Task object.
set_HistorySets the type of change that was last made to the Task object.
set_LastUpdateSets the date and time of the most recent change made to the Task object.
set_ModeSets the assignment status of the Task object.
set_PercentCompleteSets the progress the user has made on a task.
set_PrioritySets the current Priority of the Task object.
set_RecurrenceSets the recurrence properties.
set_ReminderFileParameterSpecifies the full path of the sound that a client SHOULD play when the reminder becomes overdue.
set_ReminderSetSets a value indicating whether a reminder is set on the object
set_ReminderTimeSets the initial signal time for a reminder
set_StartDateSets the date on which the user expects work on the task to begin.
set_StateSets the current assignment state of the Task object.
set_StatusSets the status of the user’s progress on the task.
set_UsersSets information about task users.
ToIcalendar
Aspose::Email::Tools::TaskConverter