EventNumber Property

Provides access to the Windows NT and Windows 2000 event ID of the event.

Syntax

ScriptContext.Event.EventNumber
ScriptContext.CreateEvent.EventNumber

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 EventNumber property to 1349, enter:


Dim MYevent
set MYevent = ScriptContext.CreateEvent
MYevent.EventNumber = 1349