Determines whether the object provided to the script by Microsoft Operations Manager 2000 is an Alert object.
ScriptContext.IsAlert
None.
Boolean.
To determine whether the object provided to the script by MOM is an Alert object, enter:
Dim MYalert If ScriptContext.IsAlert then Set MYalert = ScriptContext.Alert End If
This example gets the Alert object with the Alert property after determining whether the object is an Alert object.