This documentation is archived and is not being maintained.

Calling Event Sinks

EWS Managed API

Topic Last Modified: 2006-06-12

An event sink can be a Component Object Model (COM) class with interfaces and event methods defined by Microsoft® Exchange. To notify the event sink, Exchange creates an instance of the event sink COM class, obtains the appropriate interface, and calls the appropriate event method.

The following illustration shows how Exchange calls the event sink.



An item is saved to the store, causing a store event.


Exchange obtains the required interface in the event sink.


Exchange calls the event method for the given event notification.

The same process occurs if the event sink is a script. The only difference is that a special COM object, the Script Host, is called. The Script Host then runs the appropriate event method in the script.