Items Object Members
Outlook Developer Reference |
Contains a collection of Outlook item objects in a folder.
Methods
Name | Description | |
---|---|---|
Add | Creates a new Outlook item in the Items collection for the folder. | |
Find | Locates and returns an Outlook item object that satisfies the given Filter. | |
FindNext | After the Find method runs, this method finds and returns the next Outlook item in the specified collection. | |
GetFirst | Returns the first object in the collection. | |
GetLast | Returns the last object in the collection. | |
GetNext | Returns the next object in the collection. | |
GetPrevious | Returns the previous object in the collection. | |
Item | Returns an Outlook item from a collection. | |
Remove | Removes an object from the collection. | |
ResetColumns | Clears the properties that have been cached with the SetColumns method. | |
Restrict | Applies a filter to the Items collection, returning a new collection containing all of the items from the original that match the filter. | |
SetColumns | Caches certain properties for extremely fast access to those particular properties of an item within the collection. | |
Sort | Sorts the collection of items by the specified property. The index for the collection is reset to 1 upon completion of this method. |
Properties
Name | Description | |
---|---|---|
Application | Returns an Application object that represents the parent Outlook application for the object. Read-only. | |
Class | Returns an OlObjectClass constant indicating the object's class. Read-only. | |
Count | Returns a Long indicating the count of objects in the specified collection. Read-only. | |
IncludeRecurrences | Returns a Boolean that indicates True if the Items collection should include recurrence patterns. Read/write. | |
Parent | Returns the parent Object of the specified object. Read-only. | |
Session | Returns the NameSpace object for the current session. Read-only. |
Events
Name | Description | |
---|---|---|
ItemAdd | Occurs when one or more items are added to the specified collection. This event does not run when a large number of items are added to the folder at once. This event is not available in Microsoft Visual Basic Scripting Edition (VBScript). | |
ItemChange | Occurs when an item in the specified collection is changed. This event is not available in Microsoft Visual Basic Scripting Edition (VBScript). | |
ItemRemove | Occurs when an item is deleted from the specified collection. This event does not run when the last item in a Personal Folders file (.pst) is deleted, or if 16 or more items are deleted at once from a PST file, Microsoft Exchange mailbox, or an Exchange public folder. This event is not available in Microsoft Visual Basic Scripting Edition (VBScript). |