Provides access to the Event object that caused Microsoft Operations Manager 2000 (MOM) to invoke the script.
ScriptContext.Event
Read only.
Event.
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.