Event.Category Property
Gets the category of the event.
Event.Category
Access
Read/Write
Return Value
String
Remarks
The category of an event is a Windows 2000 text string that describes the event, such as Server or Kernel.
The Category property is read-only when used with an event provided to the script by MOM. The property is read/write when used with a new event created with the ScriptContext.CreateEvent method.
Examples
The following example shows how to create a new event and set the Category property to Server.
Function MakeEvent
Dim objEvent
Set objEvent = ScriptContext.CreateEvent()
objEvent.Category = "Server"
Set MakeEvent = objEvent
End Function
Requirements
Platforms: Requires Windows 2000 or later
Version: Requires MOM 2000 or later