Share via


_Store.GetSearchFolders Method

Returns a Folders collection object that represents the search folders defined for the Store object.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
Function GetSearchFolders As Folders
'Usage
Dim instance As _Store
Dim returnValue As Folders

returnValue = instance.GetSearchFolders()
Folders GetSearchFolders()

Return Value

Type: Microsoft.Office.Interop.Outlook.Folders
A Folders collection object that represents all the search folders for the Store object.

Remarks

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#).

See Also

Reference

_Store Interface

_Store Members

Microsoft.Office.Interop.Outlook Namespace