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
.
ScriptContext.Event.Category ScriptContext.CreateEvent.Category
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. |
String.
To create a new event and set the Category
property to Server
, enter:
Dim MYevent set MYevent = ScriptContext.CreateEvent MYevent.Category = "Server"