IPOutlookItemCollection

Send Feedback

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

Methods in Vtable Order

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

Code Example

The following code example shows how to retrieve an Items 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)
{
    IPOutlookItemCollection * pItems;
    IFolder * pFolder;

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

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

Requirements

Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 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


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show: