Share via


PimItemCollection Class

3/29/2010

Defines container operations (for example, adding, removing, and sorting items), along with state information (for example, references to the containing folder, whether the collection is sorted, etc.) about generic PIM item collections.

Namespace: Microsoft.WindowsMobile.PocketOutlook
Assembly: Microsoft.WindowsMobile.PocketOutlook (in microsoft.windowsmobile.pocketoutlook.dll)

Syntax

[DefaultMemberAttribute("Item")] 
public class PimItemCollection : IDisposable, IBindingList, IList, 
    ICollection, IEnumerable
'Declaration
<DefaultMemberAttribute("Item")> _
Public Class PimItemCollection
    Implements IDisposable, IBindingList, IList, ICollection, _
    IEnumerable

Remarks

This is the base class for Appointment, Task, and Contact collections.

The PimItemCollection class provides methods for adding and removing PimItem objects to or from a collection, searching for items within a collection, and sorting collection items. It contains methods for indexing into a collection, information about the number of items in a collection, and whether or not you can add or remove items to or from a collection.

The Pocket Outlook object model parallels the desktop Outlook object model by grouping PimItem objects into folders, but folders are actually implemented as collections. For example, the ContactFolder object has an Item property, and the accessor for this property returns a ContactCollection object, not a PimItem object.

Inheritance Hierarchy

System.Object
  Microsoft.WindowsMobile.PocketOutlook.PimItemCollection
     Microsoft.WindowsMobile.PocketOutlook.AppointmentCollection
     Microsoft.WindowsMobile.PocketOutlook.ContactCollection
     Microsoft.WindowsMobile.PocketOutlook.TaskCollection

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

PimItemCollection Members
Microsoft.WindowsMobile.PocketOutlook Namespace