Registering System Events

Topic Last Modified: 2006-06-11

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.

Aa579857.7c2a3d9e-119a-4680-a9c6-2ad41125fddc(en-us,EXCHG.80).gif