OnTimer Method
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

OnTimer Method

Exchange Server 2003

OnTimer Method

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.

Called after a specific interval of time.

Applies To

Type Library

EXOLEDB Type Library

DLL Implemented In



        [Visual Basic]Sub OnTimer
    bstrURLItem As String,     lFlags As LONG

        [C++]HRESULT OnTimer
    BSTR bstrURLItem,
    LONG lFlags


A URL to the event registration item.

The following (bitwise AND) flags can give you further information about system events:

Decimal Value C++ Enum Equivalent Meaning
64 EVT_INITNEW This flag is set at the first firing of the event. (Useful for initialization purposes. It is set only once during the lifetime of a created event sink.)

Return Value

The return call of this method is not evaluated.


This method is called for the time or time interval specified in the registration item.

Note  The store may not invoke this sink if the server is not running when the specified time elapses. For example, if a sink registers for notification at 11:00 A.M. and the service goes down at 10:55 A.M. and comes back up at 11:05 A.M., the sink may not be called.
© 2016 Microsoft