Alert Property

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

Syntax

ScriptContext.Alert

Access

Read only.

Return Type

Alert.

Example

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.