EventSource Property

Provides access to the source of the event.

Syntax

ScriptContext.Event.EventSource
ScriptContext.CreateEvent.EventSource

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

String.

Example

To create a new event and set the EventSource property to TestScript, enter:


Dim objEvent
set objEvent = ScriptContext.CreateEvent
objEvent.EventSource = "TestScript"