IsEvent Method

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

Syntax

ScriptContext.IsEvent

Parameters

None.

Return Type

Boolean.

Example

To determine whether the object provided to the script by MOM is an Event object, enter:

Dim MYevent
If ScriptContext.IsEvent then
Set MYevent = ScriptContext.Event
End If

This example gets the Event object with the Event property after determining whether the object is an Event object.