missing Folders.Item definition

A

Asa Chae

i'm working with Outllook 2003 and try to write a small plug-in/exe which
gets the folder's info. (in C#.Net). however, when i conpiled, i got an
error saying "'Outlook.Folders' doesn't contain a definition for 'Item'". i
look into the object browser and the Folders.Item is no longer available.

here's my code sample:

Outlook.NameSpace objNs = oOutlook.GetNamespace("MAPI");
Outlook.MAPIFolder objMAPI =
objNs.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts).Folders.It
em("Sales");

this same piece of code was running in Outlook 2000 and works fine. did the
Microsfot change the namespace for Outlook 2003? how can i access the
Item() now?

thank you.
 

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