IFolder (Compact 7)

3/12/2014

The IFolder interface exposes properties and methods for creating and accessing individual Pocket Outlook Object Model (POOM) items, and for sending them over an infrared link. Outlook Mobile provides the following default folders: Contacts, Tasks, Appointments, and Infrared. You can use all of them except the infrared folder to create and access individual POOM items. You can use the infrared folder only to send items over the infrared (IR) port.

Methods in Vtable Order

IFolder methods Description

IFolder::get_Items

Gets the list of items in a folder.

IFolder::get_DefaultItemType

Gets the folder type.

IFolder::get_Application

Gets the main Outlook Mobile IPOutlookApp object.

IFolder::AddItemToInfraredFolder

Adds an item to the list of items to send by infrared.

IFolder::SendToInfrared

Transmits items in the Infrared folder over the IR port.

Note While the POOM has methods related to infrared communication, Windows Embedded Compact 7 does not support the use of infrared hardware.

IFolder::ReceiveFromInfrared

Initiates reception of one or more items via infrared transfer.

Note While the POOM has methods related to infrared communication, Windows Embedded Compact 7 does not support the use of infrared hardware.

Remarks

You can use the IPOutlookApp::GetDefaultFolder method (on the main Outlook Mobile application object) to get any of the default IFolder objects.

Code Example

The following code example shows how to retrieve the Calendar folder.

Note

To make the following code example easier to read, security checking and error handling are not included. This code example should not be used in a release configuration unless it has been modified to include them.

void GetCalendarFolder(IPOutlookApplication * polApp)
{
    IFolder * pFolder;

    polApp->GetDefaultFolder(olFolderCalendar, &pFolder);

    // Release objects.
    pFolder->Release();
}

Requirements

Header

pimstore.h

Library

Pimstore.lib

See Also

Reference

Pocket Outlook Object Model Interfaces
Pocket Outlook Object Model Enumerations