Naming Event Methods
Topic Last Modified: 2006-06-12
In Component Object Model (COM) class event sinks, you name event methods by prefixing the event name with the interface name. Use the following event method names:
IExStoreSyncEvents_OnSyncSave
IExStoreSyncEvents_OnSyncDelete
IExStoreAsyncEvents_OnSave
IExStoreAsyncEvents_OnDelete
IExStoreSystemEvents_OnMDBStartUp
IExStoreSystemEvents_OnMDBShutDown
IExStoreSystemEvents_OnTimer
For example, the OnSave event method is declared as follows:
Private Sub IExStoreAsyncEvents_OnSave (pEventInfo,URLItem,Flags)
'Sink code goes here
End Sub
In Microsoft® Visual Basic®, you can use the Implements declaration to specify that you are going to implement methods in a Visual Basic class. The following code declares the interfaces:
Implements IExStoreAsyncEvents
Implements IExStoreSyncEvents
Implements IExStoreStoreEvents