MapiTask Class

A task (IPM.Task).

public sealed class MapiTask : MapiMessage
Inheritance
MapiMessage MapiTask

Properties

NameDescription
ActualEffortGets the time spent on the task.
AssignerGets the name of the user who assigned the task.
DateCompletedGets the date the task was completed.
DueDateGets the date the task is due, at midnight UTC of the local date.
EstimatedEffortGets the time the task is estimated to take.
IsCompleteGets whether the task is complete.
IsRecurringGets whether the task is recurring.
OwnerGets the name of the owner of the task.
PercentCompleteGets the completion of the task, from 0 to 1.
ReminderSetGets whether a reminder is set.
ReminderTimeGets the date and time, in UTC, of the reminder.
StartDateGets the date the task starts, at midnight UTC of the local date.
StatusGets the status of the task.

ActualEffort

MapiTask.cs

Gets the time spent on the task.

public TimeSpan? ActualEffort { get; }

Property value

TimeSpan?

Assigner

MapiTask.cs

Gets the name of the user who assigned the task.

public string? Assigner { get; }

Property value

string?

DateCompleted

MapiTask.cs

Gets the date the task was completed.

public DateTime? DateCompleted { get; }

Property value

DateTime?

Gets the date the task is due, at midnight UTC of the local date.

public DateTime? DueDate { get; }

Property value

DateTime?

EstimatedEffort

MapiTask.cs

Gets the time the task is estimated to take.

public TimeSpan? EstimatedEffort { get; }

Property value

TimeSpan?

IsComplete

MapiTask.cs

Gets whether the task is complete.

public bool IsComplete { get; }

Property value

bool

IsRecurring

MapiTask.cs

Gets whether the task is recurring.

public bool IsRecurring { get; }

Property value

bool

Gets the name of the owner of the task.

public string? Owner { get; }

Property value

string?

PercentComplete

MapiTask.cs

Gets the completion of the task, from 0 to 1.

public double PercentComplete { get; }

Property value

double

ReminderSet

MapiTask.cs

Gets whether a reminder is set.

public bool ReminderSet { get; }

Property value

bool

ReminderTime

MapiTask.cs

Gets the date and time, in UTC, of the reminder.

public DateTime? ReminderTime { get; }

Property value

DateTime?

StartDate

MapiTask.cs

Gets the date the task starts, at midnight UTC of the local date.

public DateTime? StartDate { get; }

Property value

DateTime?

Gets the status of the task.

public MapiTaskStatus Status { get; }

Property value

MapiTaskStatus

Methods

NameDescription
GetRecurrence()Returns the recurrence of the task.

GetRecurrence()

MapiTask.cs

Returns the recurrence of the task.

public MapiRecurrencePattern? GetRecurrence()

Returns

MapiRecurrencePattern? The recurrence, or null when the task is not recurring.

Exceptions

InvalidEmailDataException
The recurrence is malformed.