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

Read Task

Reads task properties from a MAPI task.

Code

using DRIT.Mail;
using DRIT.Mail.Mapi;

IMailMessage mail = MailFile.Load("task.msg");
MapiTask task = (MapiTask)mail.MapiMessage;

Console.WriteLine($"Subject:     {task.Subject}");
Console.WriteLine($"Start date:  {task.StartDate}");
Console.WriteLine($"Due date:    {task.DueDate}");
Console.WriteLine($"Complete:    {task.Complete}");
Console.WriteLine($"Percent:     {task.PercentComplete}");

Remarks

MapiTask extends MapiMessage and exposes task-specific properties defined in [MS-OXOTASK]. A .msg file containing a task has the message class IPM.Task.

  • Improve this Doc
Back to top

DR-IT Software documentation

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

Generated by DocFX