CimClassAttributeList (object)

Contains the properties of a Class Attribute List Object.
Description: CimClassAttributeList is an enumeration of CimClassAttribute objects. The CimClassAttributeList is returned from the CimClassInstance.Attributes property. Existing attributes can be retrieved and modified and new attributes can be added to the CimClassAttributeList object.

Example

Dim class as CimClassInstance
[...]
Set attributeList = class.Attributes
Set newBoolAttribute = attributeList.Add("BOOL_ATTRIBUTE")
newBoolAttribute.Type = cimAttributeBoolean
newBoolAttribute.InstantiationType = cimInstantionOptional
newBoolAttribute.Prompt = "Prompt"
newBoolAttribute.HelpString = "Help"
newBoolAttribute.Order = 1
newBoolAttribute.PropertyPage = "page 1"

Set newStringAttribute = attributeList.Add("STRING_ATTRIBUTE")
newStringAttribute.Type = cimAttributeString
newStringAttribute.InstantiationType = cimInstantionRequired
newStringAttribute.Prompt = "Prompt"
newStringAttribute.HelpString = "Help"
newStringAttribute.Order = 2
newStringAttribute.PropertyPage = "page 1"
Properties: Count , Item
Methods: Add , Delete