EventType Property

Provides access to the type of the event, such as Warning or Error.

Syntax

ScriptContext.Event.EventType
ScriptContext.CreateEvent.EventType

Access

Read Only When used with an event provided to the script by the Microsoft Operations Manager 2000 product.
Read/Write When used with a new event created with the ScriptContext.CreateEvent Method.

Return Type

Long.

Example

To create a new event and set the EventType property to Warning, enter:


Dim MYevent
set MYevent = ScriptContext.CreateEvent
MYevent.EventType = "Warning"