|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
GetSearchFolders returns all the visible active search folders for the Store. It does not return uninitialized or aged out search folders.
GetSearchFolders returns a Folders collection object with _Folders.Count equal zero (0) if no search folders have been defined for the Store.
For a Folders collection object that represents a collection of search folders, _Folders.Parent returns the same object as _Store.GetRootFolder. MAPIFolder.Folders returns Nothing (a null reference (Nothing in Visual Basic) in C#).