Share via


IPOutlookItemCollection2 (Compact 7)

3/12/2014

The IPOutlookItemCollection2 interface represents and manages a collection of PIM items contained in a Folder.

Methods in Vtable Order

IPOutlookItemCollection2 methods Description

IPOutlookItemCollection2::Find

Finds the first PIM item in a collection that passes the specified restriction.

IPOutlookItemCollection2::FindNext

Finds the next PIM item in a collection that passes the restriction specified by the most recent call to IPOutlookItemCollection::Find.

IPOutlookItemCollection2::Item

Retrieves an item from the item collection, based on the current sort order.

IPOutlookItemCollection2::Restrict

Creates a new item collection that contains only those items that meet a specified restriction.

IPOutlookItemCollection2::Sort

Sorts items within an item collection, based upon an item property.

IPOutlookItemCollection2::get_Count

Gets the number of items in the collection.

IPOutlookItemCollection2::get__NewEnum

Gets the IEnumVARIANT enumerator interface.

IPOutlookItemCollection2::get_Application

Gets a handle to the Outlook Mobile application object - the POOM entry point.

IPOutlookItemCollection2::get_IncludeRecurrences

Determines whether to include recurrences in a collection of Appointment items sorted on the IAppointment::get_Start property, in ascending order.

IPOutlookItemCollection2::put_IncludeRecurrences

Sets a flag to include recurrences in a collection of Appointment items sorted on the IAppointment::get_Start property in ascending order.

Code Example

The following code example shows how to retrieve an item collection.

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 GetAnItemsCollection(IPOutlookApp * polApp)
{
    IPOutlookItemCollection2 * pItems;
    IFolder2                 * pFolder;

    polApp->GetDefaultFolder(olFolderTasks, &pFolder);
    pFolder->get_Items(&pItems);

    // Release resources.
    pItems->Release();
    pFolder->Release();
}

Remarks

The IPOutlookItemCollection2 interface was introduced in Windows Embedded Compact 7.

Requirements

Header

pimstore.h

Library

Pimstore.lib

See Also

Reference

Pocket Outlook Object Model Interfaces