Partager via


Application.ItemLoad Event (Outlook)

Occurs when an Outlook item is loaded into memory.

Version Information

Version Added: Outlook 2007

Syntax

expression .ItemLoad(Item, )

expression A variable that represents an Application object.

Parameters

Name

Required/Optional

Data Type

Description

Item

Required

Object

A weak object reference for the loaded Outlook item.

Remarks

This event occurs when the Outlook item begins to load into memory. Data for the item is not yet available, other than the values for the Class and MessageClass properties of the Outlook item, so an error occurs when calling any property other than Class or MessageClass for the Outlook item returned in Item. Similarly, an error occurs if you attempt to call any method from the Outlook item, or if you call the GetObjectReference method of the Application object on the Outlook item returned in Item.

The ItemLoad event should typically be implemented as a means to hook up item-level event handlers such as BeforeRead, Open, Send, and Write.

This event is not raised when the following conditions occur:

  • An Outlook item is synchronized with a folder.

  • A server-side rule is triggered for an Outlook item.

  • A reminder is triggered for an Outlook item.

  • A Desktop Alert is displayed for an Outlook item.

See Also

Concepts

Application Object

Application Object Members