Category Property

Provides access to the category of the event. The category of an event is a Windows 2000 text string that describes the event, such as Server or Kernel.

Syntax

ScriptContext.Event.Category
ScriptContext.CreateEvent.Category

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 Category property to Server, enter:


Dim MYevent
set MYevent = ScriptContext.CreateEvent
MYevent.Category = "Server"