Naming Event Methods

Naming Event Methods

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.