IsAlert Method

Determines whether the object provided to the script by Microsoft Operations Manager 2000 is an Alert object.

Syntax

ScriptContext.IsAlert

Parameters

None.

Return Type

Boolean.

Example

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.