Platform SDK: Exchange 2000 Server

IExStoreAsyncEvents::OnDelete

[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
   );
pEventInfo
A pointer to an IExStoreEventInfo interface that can be used to obtain further information related to the event.
bstrURLItem
A string containing the deleted item's URL. The URL item cannot be opened because item has already been deleted.
lFlags
The following (bitwise AND) flags can give you further information about the delete event:
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.

Return Value

The return value is not evaluated.

Registration Properties

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.

Remarks

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.