AfDataContainer.set_Attribute Method [AX 2012]
Sets the value of the specified primitive data item.
Syntax
public void set_Attribute(str _name, anytype _value)
Run On
Called
Parameters
- _name
Type: str
The name of the data item.
- _value
Type: anytype
The value to set.
Remarks
The value must be a primitive type, as defined by the AfDataContainerUtilities::isAttributeValue method, or null Nothing nullptr unit a null reference (Nothing in Visual Basic) , as defined by the AfDataContainerUtilities::isNullDataItemValue method.
Other than the value type restrictions, this method operates just like the set_Item method.