Generates a new Event object. Populate the Event object with the ScriptContext.Event object properties and methods. Then submit the Event object to the Microsoft Operations Manager 2000 (MOM) data stream with the ScriptContext.Submit method.
ScriptContext.CreateEvent
None.
Event.
To generate a new Event object, enter:
Dim MYevent Set MYevent = ScriptContext.CreateEvent //Populate the event MYevent.Message = "This is a test event message." ScriptContext.Submit(MYevent)
This example creates an Event object with the CreateEvent method, populates the Event object using the Event object properties, and submits the Event object to the MOM data stream with the Submit method.