This documentation is archived and is not being maintained.

_Store.GetSpecialFolder Method

Returns a Folder object for a special folder specified by FolderType in a given store.

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

MAPIFolder GetSpecialFolder(
	OlSpecialFolders FolderType


Type: Microsoft.Office.Interop.Outlook.OlSpecialFolders

A constant in the OlSpecialFolders enumeration that specifies the type of the special folder in the store.

Return Value

Type: Microsoft.Office.Interop.Outlook.MAPIFolder
A Folder object that represents a special folder specified by the FolderType.

Not all special folders exist in all stores. If the requested special folder does not exist, Nothing (a null reference (Nothing in Visual Basic) in C#) will be returned.