MapiTask
Contents
[
Hide
]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
| Name | Description |
|---|---|
| MapiTask (3 overloads) | Initializes a new instance of the MapiTask class. |
Methods
| Name | Description |
|---|---|
| ConvertToMapiMessage | Converts the task object to mapi message |
| FromVTodo (4 overloads) | Creates an instance of MapiTask from the specified stream. |
| get_AcceptanceState | Gets the acceptance state of the task. |
| get_ActualEffort | Gets the number of minutes that the user actually spent working on a task. |
| get_Attachments | Gets the attachments collection. |
| get_DateCompleted | Gets the date when the user completed work on the task. |
| get_DueDate | Gets the date by which the user expects work on the task to be complete. |
| get_EstimatedEffort | Gets the number of minutes that the user expects to work on a task. |
| get_Flags | Gets the indication flags of the Task object. |
| get_History | Gets the type of change that was last made to the Task object. |
| get_LastUpdate | Gets the date and time of the most recent change made to the Task object. |
| get_Mode | Gets the assignment status of the Task object. |
| get_PercentComplete | Gets the progress the user has made on a task. |
| get_Priority | Gets the current Priority of the Task object. |
| get_Recurrence | Gets the recurrence properties. |
| get_ReminderFileParameter | Specifies the full path of the sound that a client SHOULD play when the reminder becomes overdue. |
| get_ReminderSet | Gets a value indicating whether a reminder is set on the object |
| get_ReminderTime | Gets the initial signal time for a reminder |
| get_StartDate | Gets the date on which the user expects work on the task to begin. |
| get_State | Gets the current assignment state of the Task object. |
| get_Status | Gets the status of the user’s progress on the task. |
| get_Users | Gets information about task users. |
| GetsFlags | Gets the flags. |
| GetUnderlyingMessage | Retrieves the underlying MapiMessage object. |
| Save (2 overloads) | Saves this MapiTask to the given stream using specified format. |
| set_AcceptanceState | Sets the acceptance state of the task. |
| set_ActualEffort | Sets the number of minutes that the user actually spent working on a task. |
| set_DateCompleted | Sets the date when the user completed work on the task. |
| set_DueDate | Sets the date by which the user expects work on the task to be complete. |
| set_EstimatedEffort | Sets the number of minutes that the user expects to work on a task. |
| set_Flags | Gets the indication flags of the Task object. |
| set_History | Sets the type of change that was last made to the Task object. |
| set_LastUpdate | Sets the date and time of the most recent change made to the Task object. |
| set_Mode | Sets the assignment status of the Task object. |
| set_PercentComplete | Sets the progress the user has made on a task. |
| set_Priority | Sets the current Priority of the Task object. |
| set_Recurrence | Sets the recurrence properties. |
| set_ReminderFileParameter | Specifies the full path of the sound that a client SHOULD play when the reminder becomes overdue. |
| set_ReminderSet | Sets a value indicating whether a reminder is set on the object |
| set_ReminderTime | Sets the initial signal time for a reminder |
| set_StartDate | Sets the date on which the user expects work on the task to begin. |
| set_State | Sets the current assignment state of the Task object. |
| set_Status | Sets the status of the user’s progress on the task. |
| set_Users | Sets information about task users. |
| ToIcalendar | |
| Aspose::Email::Tools::TaskConverter |