_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)
Syntax
'Declaration
<DispIdAttribute()> _
Function GetSpecialFolder ( _
FolderType As OlSpecialFolders _
) As MAPIFolder
'Usage
Dim instance As _Store
Dim FolderType As OlSpecialFolders
Dim returnValue As MAPIFolder
returnValue = instance.GetSpecialFolder(FolderType)
[DispIdAttribute()]
MAPIFolder GetSpecialFolder(
OlSpecialFolders FolderType
)
Parameters
FolderType
Type: Microsoft.Office.Interop.Outlook.OlSpecialFoldersA 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.
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.