This topic has not yet been rated - Rate this topic

Folders

This section provides sample tasks that involve folders. Folder objects represent the folder hierarchy where Microsoft Outlook items are stored. Examples of folders include the Calendar, Mail, and Deleted Items folders. In the Outlook Primary Interop Assembly (PIA), members of the Folder object are exposed as members of the MAPIFolder object.

How to: Add a Folder to the Folder List

Uses the Add(String, Object) method to add a folder to the Outlook folder list.

How to: Enumerate Folders

Enumerates folders by iterating through a collection of folders.

How to: Get a Default Folder and Enumerate Its Subfolders

Obtains a default folder in the user’s default store and enumerates its subfolders.

How to: Get a Folder Based on Its Folder Path

Takes a folder path and obtains the associated folder.

How to: Select a Folder and Display Folder Information

Programmatically displays information about a folder that a user selects from a specified folder list.

How to: Get the Default Message Class of a Folder

Uses the DefaultMessageClass property to obtain the default message class of a folder.

How to: Access Solution-Specific Data Stored as a Hidden Message in a Folder

Uses the StorageItem object to retrieve data that is stored as a hidden message of a specific message class in a folder.

How to: Ensure that Custom Item Properties Are Supported in Folder-Level Queries

Shows how to ensure that when you add a custom property to an item type, you also add the property to the folder so that you can query on that custom property at the folder level.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.