CimClassEventActionList.Add (method)

Adds the EventAction.
Syntax: Set CimEventAction = object.Add ( actionId )
actionId As String - Name of the event to be added from the event list.
Description: CimClassEventActionList.Add adds a CimEventAction by name.


Dim class as CimClassInstance
Dim eventList as CimClassEventList
Dim event as CimEvent
Dim eventActionList as CimClassEventActionList
Dim eventAction as CimEventAction
Set eventList = class.Events
Set event = eventList.Item("EXISTING_EVENT")
Set eventActionList = event.Actions
Set eventAction = eventActionList.Add("POINT_ACTION")