CimClassDataItemExpressionList.Add (method)

Adds an expression.
Syntax: Set CimClassDataItemExpression = object.Add ( expressionId )
expressionId As String - Name of the attribute.
Description: CimClassDataItemExpression.Add adds a CimClassDataItemExpression based on the ID that is passed in. Use this method to create a CimClassDataItemExpression.


Dim class As CimClassInstance
Dim dataItem As CimPoint
Dim expression As CimClassDataItemExpression
Set dataItem = class.DataItems.Item("EXISTING_POINT")
Set expression = dataItem.Expressions.Add("NEW_EXPRESSION")