| Platform SDK: Exchange 2000 Server | 
[This is preliminary documentation and subject to change.]
This is fired by store when an item is deleted.
[Visual Basic, VBScript] Sub OnDelete( pEventInfo As IExStoreEventInfo, bstrURLItem As String, lFlags As Long ) [C++] HRESULT OnDelete( IExStoreEventInfo * pEventInfo, BSTR bstrURLItem, LONG lFlags ); [IDL] HRESULT OnDelete( [in] IExStoreEventInfo * pEventInfo, [in] BSTR bstrURLItem, [in] LONG lFlags );
| Decimal Value | C++ Enum Equivalent | Description | 
|---|---|---|
| 2 | EVT_IS_COLLECTION | The item being deleted is a collection. | 
| 16 | EVT_SOFTDELETE | The item was moved to the dumpster (soft delete). | 
| 32 | EVT_HARDDELETE | The item was permanently deleted (hard delete). | 
| 256 | EVT_MOVE | The delete was part of a move operation | 
| 512 | EVT_COPY | The delete was part of a copy operation. | 
The return value is not evaluated.
To register for this event, you need to set the registration item's eventmethod property to "OnDelete" (C++ constant = EVT_ON_DELETE).
This event supports the following Registration Item properties:
See The Registration Item for more information on registration properties.
This event also fires as the delete part of a move operation. This event does not fired when the item's parent folder is moved or deleted.