Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The primary interface to the Pocket Outlook Object Model (POOM) is the Outlook Mobile application object— IPOutlookApp. This is the only POOM object that CoCreateInstancecan create, with all other objects derived from it. After logging on to the application object by using IPOutlookApp::Logon, you can then create various Personal Information Manager (PIM) item objects by using IPOutlookApp::CreateItem.
A Folderobject contains an IPOutlookItemCollectionobject, which holds a collection of Outlook items. Folders are essentially wrappers for the Contacts, Calendar, and Tasks databases. There is also an Infrared folder for transferring items over an infrared port using IFolder::SendToInfrared.
The POOM Folderimplementation is a subset of the Outlook Folderobject. Each item type is associated with one of the OlDefaultFolders, and users cannot create or manipulate the Folderobject itself. The Folderobject is provided mainly for compatibility with Outlook.
The IPOutlookItemCollectionobject is obtained from the Folderobject by using IFolder::get_Items. An Items collection is a collection of Contact, Task, and Appointment objects. You can retrieve individual items by using IPOutlookItemCollection::Item, delete individual items by using IPOutlookItemCollection::Remove, and create individual items by using IPOutlookItemCollection::Add. With the Items collection, you can also perform basic filtering over a collection of objects by using IPOutlookItemCollection::Restrict.
You can set and retrieve Outlook item properties by using the get/put property methods associated with each Outlook item type.
Task and Appointment items support the IRecurrencePatternobject. With this object, you can set up a recurrence for a Task or Appointment. Appointment items also support the IRecipientscollection, with which you can specify Meeting Recipients. An Appointment item that has a collection of Recipients, is also called a Meeting.
External Resources
For more information, see