Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IPOutlookItemCollection

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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

IPOutlookItemCollection methods Description

IPOutlookItemCollection::Add

Creates a new item for a folder in the item collection.

IPOutlookItemCollection::get_Count

Gets the number of items in the collection.

IPOutlookItemCollection::Find

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

IPOutlookItemCollection::FindNext

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

IPOutlookItemCollection::Item

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

IPOutlookItemCollection::Remove

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

IPOutlookItemCollection::Restrict

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

IPOutlookItemCollection::Sort

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

IPOutlookItemCollection::get_IncludeRecurrences

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

IPOutlookItemCollection::put_IncludeRecurrences

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

IPOutlookItemCollection::get__NewEnum

Gets the IEnumVARIANT enumerator interface.

IPOutlookItemCollection::get_Application

Gets the main Outlook Mobile IPOutlookApp object.

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

Aa913373.note(en-us,MSDN.10).gifNote:
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 resources.
    pItems->Release();
    pFolder->Release();
}

Headerpimstore.h
LibraryPimstore.lib
Windows Embedded CEWindows CE 2.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft