Event Property

Provides access to the Event object that caused Microsoft Operations Manager 2000 (MOM) to invoke the script.

Syntax

ScriptContext.Event

Access

Read only.

Return Type

Event.

Example

To access the Event object that caused MOM to invoke the script, enter:


If ScriptContext.IsEvent then
Dim MYevent
Set MYevent = ScriptContext.Event
End If

This example first uses the IsEvent method to determine whether the object that caused MOM to invoke the script was an Event object.