CimClassScriptList (object)

Contains the properties of a CimClassScriptList Object.
Description: CimClassScriptList is an enumeration of CimClassScript objects that represent scripts that are associated with this class. The CimClassScriptList is returned from the CimClassInstance.Scripts property.


Dim class as CimClassInstance
Dim scriptList as CimClassScriptList
Set scriptList = class.Scripts
Set newScript = scriptList.Add("NEW_SCRIPT")
newScript.Text = "Sub Main() MsgBox ""hi"" EndSub"

Set newScriptTwo = scriptList.Add("NEW_SCRIPT_TWO")
newScriptTwo.Text = "Sub Main() MsgBox ""hi two"" EndSub"

Properties: Count , Item
Methods: Add , Delete