Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
The Script Host needs to be able to identify which subroutines are meant to handle a given event. In your script use the "Implements" declaration to specify that you are going to implement methods in a Microsoft® Visual Basic® class. This code declares the interfaces:
Implements IExStoreAsyncEvents Implements IExStoreSyncEvents Implements IExStoreStoreEvents
With these classes declared, the VB script now looks for the implementation of the methods in those interfaces. The methods (event handlers) in the script must have a name with the convention "InterfaceName_EventName". For example the OnSave event handler is declared as:
Public Sub ExStoreEvents_OnSave (pEventInfo,URLItem,Flags) ‘sink code End Sub
By using this convention the Script Host can locate the subroutines within the script that correspond to the events being fired.