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

Read Appointment

Reads appointment properties from a MAPI appointment.

Code

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

IMailMessage mail = MailFile.Load("appointment.msg");
MapiAppointment appointment = (MapiAppointment)mail.MapiMessage;

Console.WriteLine($"Subject:    {appointment.Subject}");
Console.WriteLine($"Location:   {appointment.Location}");
Console.WriteLine($"Start:      {appointment.Start}");
Console.WriteLine($"End:        {appointment.End}");
Console.WriteLine($"All day:    {appointment.AllDayEvent}");
Console.WriteLine($"Reminder:   {appointment.ReminderSet}");

Remarks

MapiAppointment extends MapiMessage and exposes appointment-specific properties defined in [MS-OXOCAL]. A .msg file containing an appointment has the message class IPM.Appointment.

  • Improve this Doc
Back to top

DR-IT Software documentation

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

Generated by DocFX