Programmer's Guide > Interfaces > CMSObject interface > setAttribute method
  
setAttribute method
Sets the value of an attribute. Attributes are identified by name.
To set the values of multiple attributes, use the setAttributes method.
setAttribute(attribute, value [, index])
Parameters
Stringattribute
Specifies the attribute name.
Stringvalue
Specifies the attribute value.
intindex
[optional] Specifies the repeating attribute index (zero-based).
Returns
void
Throws
CMSException
Raised for any error.