How to: Enumerate Search Folders on All Stores
|Outlook Developer Reference|
This topic describes a code sample that enumerates the search folders on all stores for the current session.
- The code sample begins by getting all the stores for the current session using the NameSpace.Stores property of the current session,
- For each store of this session, it uses Store.GetSearchFolders to obtain the collection of search folders for that store.
- For each collection of search folders, it displays the name of each folder.
To run this code sample, place the code in the built-in ThisOutlookSession module.