Hi Patel,
Appointment app = Appointment.Load(“Sample
Appointment.ics”);
var msg = new MailMessage();
msg.AddAlternateView(app.RequestApointment());
MapiMessage mapi = MapiMessage.FromMailMessage(msg);
Console.WriteLine("Organizer = " + app.Organizer);
if (mapi.Properties.Contains(MapiPropertyTag.PR_CREATION_TIME))
{
MapiProperty CreationTime = mapi.Properties[MapiPropertyTag.PR_CREATION_TIME];
Console.WriteLine("Creation Time = " + CreationTime.GetDateTime());
}
if (mapi.Properties.Contains(MapiPropertyTag.PR_LAST_MODIFICATION_TIME))
{
MapiProperty lastModTime = mapi.Properties[MapiPropertyTag.PR_LAST_MODIFICATION_TIME];
Console.WriteLine("Last Modification Time = " + lastModTime.GetDateTime());
}
if (mapi.Properties.Contains(MapiPropertyTag.PR_SENDER_EMAIL_ADDRESS))
{
MapiProperty senderEmail = mapi.Properties[MapiPropertyTag.PR_SENDER_EMAIL_ADDRESS];
Console.WriteLine("FROM email Address = " + senderEmail.GetString());
}
if (mapi.Properties.Contains(MapiPropertyTag.PR_RECEIVED_BY_EMAIL_ADDRESS))
{
MapiProperty receivedByEmail = mapi.Properties[MapiPropertyTag.PR_RECEIVED_BY_EMAIL_ADDRESS];
Console.WriteLine("Recevied by email Address = " + receivedByEmail.GetString());
}
if (mapi.Properties.Contains(MapiPropertyTag.PR_SENT_REPRESENTING_EMAIL_ADDRESS))
{
MapiProperty OnBehalfOfEmail = mapi.Properties[MapiPropertyTag.PR_SENT_REPRESENTING_EMAIL_ADDRESS];
Console.WriteLine("On Behalf of = " + OnBehalfOfEmail.GetString());
}