Registering System Events

Registering System Events

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.

The EventSampleVB.exe file can be used to create an event registration item for system events.

To register a system event

  1. In the Folder URL box, enter a valid folder URL.

  2. In the Registration Name box, enter a name for the registration item.

  3. In the Method(s) box, enter OnMDBStartUp, OnMDBShutDown, or OnTimer.

    Note  Only one system event may be registered at a time.

  4. In the Sink Class box, enter the name of the COM+ component that holds the system event sink(s) to be registered.

  5. Click Create System Event Registration. If you are registering the OnTimer event, set the OnTimer properties as shown in the following procedure.

To set the OnTimer properties

  1. In the Start Time box, enter a valid start date (mm/dd/yy).
  2. In the Interval box, enter an integer number for the timer interval.
  3. In the Expiry Time box, enter a valid end date (mm/dd/yy). This field is optional; it will default to infinity if not set.
  4. Click Create System Event Registration.

The following illustration shows how the OnTimer event might be registered using the sample event sinks.

The screen shot shows the sample application with 'OnTimer' specified in the Method(s) field, start and end dates specified in the Start Time and Expiry Time fields, and '60' specified in the Interval field.

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.