• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Task

Represents a task item (IPM.Task), extending Message with task-specific properties defined in [MS-OXOTASK].

Inheritance
object
Message
Task
PstTask
Inherited Members
Message.Create(MapiMessage)
Message.AlternateRecipientAllowed
Message.AutoForwarded
Message.Body
Message.BodyFormat
Message.BodyRtf
Message.Categories
Message.Class
Message.Codepage
Message.Companies
Message.CreationTime
Message.CultureInfo
Message.Encoding
Message.EntryID
Message.Flags
Message.HtmlBody
Message.Importance
Message.InternetCodepage
Message.LastModificationTime
Message.LocaleId
Message.MessageClass
Message.Mileage
Message.NoAging
Message.IsConflict
Message.MarkForDownload
Message.IsRemoteDeletionMarked
Message.Priority
Message.Private
Message.Reminder
Message.RetentionExpirationDate
Message.SetSender(string)
Message.SetSender(string, string)
Message.SetSentRepresenting(string, string)
Message.Sensitivity
Message.Size
Message.Subject
Message.Headers
Message.UnRead
Message.SideEffects
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Mail.Mapi.API
Assembly: DRIT.Mail.dll
Syntax
public class Task : Message

Constructors

View Source

Task(MapiTask)

Initialises a new instance of Task backed by the given MAPI task node.

Declaration
public Task(MapiTask mapiTask)
Parameters
Type Name Description
MapiTask mapiTask

The underlying MAPI task property accessor.

Exceptions
Type Condition
ArgumentNullException

Thrown when mapiTask is null.

Properties

View Source

ActualWork

Gets or sets the actual number of minutes the user has worked on the task.

Declaration
public int? ActualWork { get; set; }
Property Value
Type Description
int?
Remarks

Must be between 0 and 1,525,252,319 inclusive. Reference: MS-OXOTASK 2.2.2.2.6 PidLidTaskActualEffort Property

Exceptions
Type Condition
ArgumentOutOfRangeException

Thrown when the value is outside the valid range.

View Source

AssignmentState

Gets or sets the assignment state of the task (not assigned, assignee's copy, assigner's copy, or conflict).

Declaration
public TaskState? AssignmentState { get; set; }
Property Value
Type Description
TaskState?
Remarks

Reference: MS-OXOTASK 2.2.2.2.10 PidLidTaskState Property

View Source

DateCompleted

Gets or sets the date on which the user completed the task.

Declaration
public DateTime? DateCompleted { get; set; }
Property Value
Type Description
DateTime?
Remarks

Reference: MS-OXOTASK 2.2.2.2.11 PidLidTaskDateCompleted Property

View Source

DueDate

Gets or sets the date by which the user expects to finish the task. Returns null when the underlying value is the "no date" sentinel.

Declaration
public DateTime? DueDate { get; set; }
Property Value
Type Description
DateTime?
Remarks

Reference: MS-OXOTASK 2.2.2.2.9 PidLidTaskDueDate Property

View Source

EstimatedWork

Gets or sets the estimated number of minutes the user expects to work on the task.

Declaration
public int? EstimatedWork { get; set; }
Property Value
Type Description
int?
Remarks

Must be between 0 and 1,525,252,319 inclusive. Reference: MS-OXOTASK 2.2.2.2.5 PidLidTaskEstimatedEffort Property

Exceptions
Type Condition
ArgumentOutOfRangeException

Thrown when the value is outside the valid range.

View Source

LastUpdate

Gets the date and time of the most recent change to this task. Updated automatically by Save().

Declaration
public DateTime? LastUpdate { get; }
Property Value
Type Description
DateTime?
Remarks

Reference: MS-OXOTASK 2.2.2.2.22 PidLidTaskLastUpdate Property

View Source

PercentComplete

Gets or sets a value that indicates the progress the user has made on a task.

Declaration
public double? PercentComplete { get; set; }
Property Value
Type Description
double?
Remarks

The value MUST be a number greater than or equal to 0.0 and less than or equal to 1.0, where 1.0 indicates that work is completed and 0.0 indicates that work has not begun.

Reference: MS-OXOTASK 2.2.2.2.3 PidLidPercentComplete Property

View Source

StartDate

Gets or sets the date on which the user expects to begin the task. Returns null when the underlying value is the "no date" sentinel.

Declaration
public DateTime? StartDate { get; set; }
Property Value
Type Description
DateTime?
Remarks

Reference: MS-OXOTASK 2.2.2.2.8 PidLidTaskStartDate Property

View Source

Status

Gets or sets the completion status of the task. Setting to Completed automatically sets PercentComplete to 1; setting to NotStarted resets it to 0.

Declaration
public TaskStatus? Status { get; set; }
Property Value
Type Description
TaskStatus?
Remarks

Reference: MS-OXOTASK 2.2.2.2.2 PidLidTaskStatus Property

Methods

View Source

CreateNew(MapiTask)

Creates a new Task with default property values applied.

Declaration
public static Task CreateNew(MapiTask mapiTask)
Parameters
Type Name Description
MapiTask mapiTask

The underlying MAPI task node.

Returns
Type Description
Task

A new Task instance with default values set.

View Source

Save()

Saves property changes and updates LastUpdate to the current time.

Declaration
public override void Save()
Overrides
Message.Save()
View Source

SetDefaultValues()

Sets the default values.

Declaration
protected override void SetDefaultValues()
Overrides
Message.SetDefaultValues()
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX