Provides access to the Alert object that caused Microsoft Operations Manager 2000 (MOM) to invoke the script.
ScriptContext.Alert
Read only.
Alert.
To access the Alert object that caused MOM to invoke the script, enter:
If ScriptContext.IsAlert then Dim MYalert Set MYalert = ScriptContext.Alert End If
This example first uses the IsAlert method to determine whether the object that caused MOM to invoke the script was an Alert object.