Item Events

There is no "Item" object as such but in fact 16 individual objects that make up items.


Item Types

There are 16 different types of items
Appointment
Contact
Distribution List
Document
Journal
Mail
Meeting
Note
Post
Remote
Report
Sharing
Storage
Task
TaskRequest
TaskRequestAccept
TaskRequestDecline
TaskRequestUpdate





Item.BeforeAutoSave 
Item.BeforeAttachmentAdd - (Added in 2007) 
Item.BeforeAttachmentPreview - (Added in 2007) 
Item.BeforeAttachmentRead - (Added in 2007) 
Item.BeforeAttachmentSave -  
Item.BeforeAttachmentWriteToTempFile - (Added in 2007) 
Item.Forward - raised when the item is forwarded by pressing Forward+C183 
Item.Open - raised when the item is opened in an inspector. 
Item.Close - raised when the item is closed after being opened in an inspector. 
Item.PropertyChange - raised when a built-in property changes 
Item.Remove 
Item.Read - raised when an item is displayed, either in an explorer or an inspector. This has nothing to do with the Read or Unread status of an item. 
Item.Reply - raised when an item is replied to  
Item.ReplyAll - raised when the item is replied to by pressing Reply to All 
Item.Send - raised when an item is sent from an inspector 
Item.Write - raised after the item is saved after modification. 
Items.BeforeDelete - raised when an item is removed from a folder. It must be removed from an inspector window. The event is not raised if you just remove the item from the folder. 
Items.BeforeItemMoved - (Added in 2007) 
Items.ItemAdd - raised when an item is added to a folder. It is raised for each item added. Not raised if a large number of items are added in one go. You can get round this limitation by using the FolderChange event and comparing the number of items in the folder before and after. 
Items.ItemChange 
Items.ItemRemove - raised when an item is removed from a folder. It is raised for each item removed from the items collection. Not raised if more than 16 items are deleted. 

Item.CustomAction - raised when a custom action associated with this item is invoked. The action parameter can be cast to an Action object



Property Change Events

Outlook items often have several properties associated with them
For example: Creation-Time, Importance, LastModificationTime
All these properties are contained by the ItemProperties property.
You can also define custom properties and associate them with the items.
When custom properties are changed Outlook raises the CustomPropertyChange event.



Custom Actions

Outlook enables you to associate custom actions with an Outlook item.
A custom action is given a name and some default behaviour
You can create a custom action whose default behaviour is to act on the original item or to reply to the existing item (for example)
You can also set whether the action is shown as a button, a menu command or both.
When the custom action is invoked from the menu or toolbar the CustomAction event is raised on the item.






© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext