Topic Last Modified: 2006-06-13
Called by a store when an item is saved.
EXOLEDB Type Library
DLL Implemented In
Sub OnSave( ByVal pEventInfo As IExStoreEventInfo, ByVal bstrURLItem As String, ByVal IFlags As LONG) HRESULT OnSave ( IExStoreEventInfo* pEventInfo, BSTR bstrURLItem, LONG IFlags );
A pointer to an IExStoreEventInfo Interface that can be used to obtain additional information related to the event.
A string containing a URL to the new saved item.
The following (bitwise AND) flags can give you additional information about the save event:
Decimal Value C++ Enum Equivalent Meaning
The item being saved is new.
The item being saved is a collection.
The item is being saved as a result of replication.
The item is being saved as the result of message delivery.
This flag is set at the first firing of the event. (This is useful for initialization purposes. It is set only once during the lifetime of a created event sink.)
The item was moved, resulting in an implicit save.
The item was copied, resulting in an implicit save.
To register for this event, you need to set the registration item's EventMethod Field property to "OnSave" (C++ constant = EVT_ON_SAVE).
This event supports the following properties of Event Registration Items:
This event is fired when a new item enters the store, when an existing item is saved, and when an item is moved or copied. This event does not fire when the item's parent folder is moved or copied.
See the IAsyncNotify Interface for information about processing asynchronous events in a Component Object Model (COM) object.