Partager via


ItemEvents_10_Event.Unload Event

Occurs before an Outlook item is unloaded from memory, either programmatically or by user action.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
Event Unload As ItemEvents_10_UnloadEventHandler
'Usage
Dim instance As ItemEvents_10_Event
Dim handler As ItemEvents_10_UnloadEventHandler

AddHandler instance.Unload, handler
event ItemEvents_10_UnloadEventHandler Unload

Remarks

This event occurs after the Close event for the Outlook item occurs, but before the Outlook item is unloaded from memory, allowing an add-in to release any resources related to the object. Although the event occurs before the Outlook item is unloaded from memory, this event cannot be canceled.

Note

This event is meant only as a notification event, so that an add-in can dereference the object. An error occurs if any property or method for this object is called within the Unload event.

See Also

Reference

ItemEvents_10_Event Interface

ItemEvents_10_Event Members

Microsoft.Office.Interop.Outlook Namespace