Share via


IPOutlookItemCollection

The IPOutlookItemCollection interface represents and manages a collection of Pocket Outlook items in a folder.

Methods in Vtable Order

IPOutlookItemCollection methods Description
Add Creates a new item for a folder in the Items collection.
get_Count Gets the number of items in the collection.
Find Finds the first Pocket Outlook item in a collection that passes the specified restriction.
FindNext Finds the next Pocket Outlook item in a collection that passes the restriction specified by the most recent call to IPOutlookItemCollection::Find.
Item Retrieves an item from a folder, based on the current sort order.
Remove Removes an item from the item collection, based on the current sort order.
Restrict Creates a new Items collection that contains only items that pass a specified restriction.
Sort Sorts folder items based on an item property.
get_IncludeRecurrences Determines whether to include recurrences in a collection of appointments sorted on the Start property in ascending order.
put_IncludeRecurrences Determines whether to include recurrences in a collection of appointments sorted on the Start property in ascending order.
get__NewEnum Gets the IEnumVARIANT enumerator interface.
get_Application Gets the main Pocket Outlook IPOutlookApp object.

Example

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

void GetAnItemsCollection(IPOutlookApp * polApp)
{
    IPOutlookItemCollection * pItems;
    IFolder * pFolder;

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

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

Requirements

Smartphone: Windows Mobile 2002 and later
OS Versions: Windows CE 3.0 and later
Header: pimstore.h
Library: pimstore.lib

See Also

Pocket Outlook Object Model API Interfaces

Pocket Outlook Object Model API Enumerations

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.