|Microsoft Operations Manager|
The Categoryproperty gets 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.
The Categoryproperty 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.CreateEventmethod.
The following example shows how to create a new event and set the Categoryproperty to Server.
[VBScript] Function MakeEvent Dim objEvent Set objEvent = ScriptContext.CreateEvent() objEvent.Category = "Server" Set MakeEvent = objEvent End Function
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
Did you find this information useful? Please send your suggestions and comments about the documentation to email@example.com.