using Office = Microsoft.Office.Core;
using Outlook = Microsoft.Office.Interop.Outlook;
Outlook.Application outlook = new Outlook.ApplicationClass();
Outlook.NameSpace ns = outlook.GetNamespace("Mapi");
Outlook.Recipient oRecip = ns.CreateRecipient("INBOX");
oRecip.Resolve();
if (oRecip.Resolved)
{
Outlook.MAPIFolder oInbox = ns.GetSharedDefaultFolder(oRecip, Outlook.OlDefaultFolders.olFolderInbox);
if (oInbox.Items.Count > 0 && oInbox.Items.Count != null)
{
for (int i = 1; i <= oInbox.Items.Count; i++)
{
if (oInbox.Items[i] is Outlook.MailItem)
{
Outlook.MailItem mailItem = oInbox.Items[i] as Outlook.MailItem;
ProcessMailItem(mailItem);
mailItem.UnRead = false;
}
}
}
}
This way you can use the Mailitem object in the Office interop which has all the info you need/want