There's no way to know for certain what folders(1) is. If you want to
iterate all folders, you should iterate all members of the oNs.Folders
collection. If you want to iterate only the user's default store, use
Namespace.GetDefaultFolder to return the Inbox, then get the Inbox folder's
Parent and start your iteration from that folder's Folders collection.

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Hi
>
[quoted text clipped - 20 lines]
> Thanks
> Anushya
Anushya - 23 Feb 2004 03:51 GMT
Thanks Sue. It works
Microsoft.Office.Interop.Outlook.MAPIFolder oOlInboxFolder =
oOutlookNs.GetDefaultFolder(OlDefaultFolders.olFolderInbox);
IterateFolder((Microsoft.Office.Interop.Outlook.MAPIFolder)oOlInboxFolder.Parent);
Anushya
> There's no way to know for certain what folders(1) is. If you want to
> iterate all folders, you should iterate all members of the oNs.Folders
[quoted text clipped - 26 lines]
> > Thanks
> > Anushya