Identifying folder type

W

WLAN

Hi,

I have an outlook addin which archives mails into repository. But i want to
show our application specific settings based on the folder type.

i.e. Outlook shows exchange mailbox, other user mailbox (delegate), PST
files, Archive folders, Public folders etc. I want to show my application
settings in a context menu.

But i want to show it for only Exchange mailbox or Other User
Mailbox(delegate) folders. So How do I determine the folder type?

Thanks in Advance
 
K

Ken Slovak - [MVP - Outlook]

Outlook version? What language? Are you using a MAPI helper such as
Redemption?
 
W

WLAN

Hi,

I would like to support on Outlook 2003 & 2007 versions. Actually i'm
writing a outlook addin using C#.

Can you tell me which mechanisms i have to use for getting folder type?

Thanks
 
K

Ken Slovak - [MVP - Outlook]

Use the DefaultItemType property of the MAPIFolder object. Look in the
Outlook VBA project's Object Browser Help for information on what each
folder's DefaultItemType would be. You'll get back a member of the
olItemType 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