_Store.GetSpecialFolder(OlSpecialFolders) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Folder object for a special folder specified by FolderType
in a given store.
public:
Microsoft::Office::Interop::Outlook::MAPIFolder ^ GetSpecialFolder(Microsoft::Office::Interop::Outlook::OlSpecialFolders FolderType);
public Microsoft.Office.Interop.Outlook.MAPIFolder GetSpecialFolder (Microsoft.Office.Interop.Outlook.OlSpecialFolders FolderType);
Public Function GetSpecialFolder (FolderType As OlSpecialFolders) As MAPIFolder
Parameters
- FolderType
- OlSpecialFolders
A constant in the OlSpecialFolders enumeration that specifies the type of the special folder in the store.
Returns
A Folder object that represents a special folder specified by the FolderType
.
Remarks
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.