I am reading the book "Programming Applications for Microsoft Office Outlook : 2007". In the sample code..
private void Application_ItemContextMenuDisplay(
Microsoft.Office.Core.CommandBar CommandBar,
Microsoft.Office.Interop.Outlook.Selection Selection)
{
OutlookItem oItem = new OutlookItem(Selection[1]);
//...
}
The problem with the above code is the I could not find OutlookItem class anywhere. Since I am new to Office/Outlook programming, I need some guidance up on this end. Please let me know how to access the items in Selection as a generic outlook item, instead of specifying or casting as MailItem or AppointmentItem.