public static void Run()
{
// The path to the File directory.
string dataDir = RunExamples.GetDataDir_Outlook();
MapiMessage msg = MapiMessage.FromFile(dataDir + @"TestMessage.msg");
foreach (MapiRecipient recipient in msg.Recipients)
{
Console.WriteLine(string.Format("Recipient: {0}", recipient.DisplayName));
// Get the PR_RECIPIENT_TRACKSTATUS_TIME_DELIVERY property
Console.WriteLine(string.Format("Delivery time: {0}", recipient.Properties[MapiPropertyTag.PR_RECIPIENT_TRACKSTATUS_TIME_DELIVERY].GetDateTime()));
// Get the PR_RECIPIENT_TRACKSTATUS_TIME_READ property
Console.WriteLine(string.Format("Read time: {0}", recipient.Properties[MapiPropertyTag.PR_RECIPIENT_TRACKSTATUS_TIME_READ].GetDateTime()));
Console.WriteLine();
}
}
}