check whether an outlook mail contains an appointment item/request

B

Bharathi

Hi,

I am developing Add-ins for outlook 2003 using Visual Studion 2005
(C#).


My requirement is
1. Create a Tool Bar with 3 bottons "Mail","Appointment","Task".
Determine the visibility of the button based on the Type of the Item
selected in Inbox.

If I need to make "Appointment" Button visible, then I need to check
whether the selected mail contains an Appointment Request or not..

By default, all the items in the Inbox folder are MailItems. When a
particular mailItem is selected, i want to check whether that mailItem
contains an appointment request or not.

How do I determine this programmatically?

Please some one do the needful

Thanks,
Bharathi
 
K

Ken Slovak - [MVP - Outlook]

All items in the Inbox are not mail items. You can have non-delivery
reports, task and meeting requests, post items and other sorts of items
there. Check the Class property for olMail to see if an item is really a
mail item or some other type of item listed in the OlObjectType enum.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top