Partager via


ItemEvents_10_Event.BeforeDelete Event

Occurs before an item (which is an instance of the parent object) is deleted.

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

Syntax

'Declaration
Event BeforeDelete As ItemEvents_10_BeforeDeleteEventHandler
'Usage
Dim instance As ItemEvents_10_Event
Dim handler As ItemEvents_10_BeforeDeleteEventHandler

AddHandler instance.BeforeDelete, handler
event ItemEvents_10_BeforeDeleteEventHandler BeforeDelete

Remarks

In order for this event to fire when an e-mail message, distribution list, journal entry, task, contact, or post are deleted through an action, an inspector must be open.

The event occurs each time an item is deleted.

See Also

Reference

ItemEvents_10_Event Interface

ItemEvents_10_Event Members

Microsoft.Office.Interop.Outlook Namespace

Microsoft.Office.Interop.Outlook.ItemEvents_10_BeforeDeleteEventHandler