Event Object

The Event object is the internal representation MOM uses for entries collected from NT Event logs, application log files, and other MOM data providers.

You can use the Event object to view the read-only events provided by MOM through the ScriptContext.Event property as well as the read-write events created within the script using the ScriptContext.CreateEvent method.

Methods

Name Description

EventParameter

Gets an event parameter.

SetEventParameter

Sets the event parameters of a newly created event object.

Properties

Name Description

Category

Gets the category of the event.

EventNumber

Gets the Windows event ID of the event.

EventParameterCount

Gets the number of event parameters.

EventSource

Gets the source of the event, which is often the name of the application or service that raised it.

EventType

Gets the type of the event, such as Warning or Error.

ID

Gets the globally unique identifier (GUID) of the Event.

LocalTime

Gets the local date and time that the event occurred.

LoggingComputer

Gets the name of the computer that logged the event.

LoggingDomain

Gets the logging domain of the event.

Message

Gets the description of the event.

MessageDLL

Gets the name of the message DLL that provides the event.

MessageDLLFileVersion

Gets the version number of the message DLL that provides the event.

SourceComputer

Gets the name of the computer that generated the event.

SourceDomain

Gets the source domain of the event.

UTCTime

Gets the date and time that the event occurred.

UserDomainName

Gets the domain name for the Windows NT or Windows 2000 account that generated the event.

UserName

Gets the name of the Windows NT or Windows 2000 account that generated the event.

Requirements

Platforms: Requires Windows 2000 or later

Version: Requires MOM 2000  or later

See Also

ScriptContext.CreateEvent Method | ScriptContext.Event Property