CimClassEventList.Add (method)

Adds the Event.
Syntax: Set CimEvent = object.Add ( eventID )
Parameters:
eventID As String - Name of the event to be added from the event list.
Description: CimClassEventList.Add creates a CimEvent by name. Use this method to create a CimEvent object for this class instance.

Examples

Dim class as CimClassInstance
Dim eventList as CimClassEventList
Dim event as CimEvent
[...]
Set eventList = class.Events
Set event = eventList.Add("NEW_EVENT")