Compartir a través de


_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

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.

See Also

Reference

_Store Interface

_Store Members

Microsoft.Office.Interop.Outlook Namespace