Creates a new layer attribute.
| JavaScript | 
 | 
| CreateAttribute( AttributeName, attrType, Size, Precision) | |
| C# | 
 | 
| void CreateAttribute( string AttributeName, AttributeTypeCode attrType, int Size, int Precision) | |
| C++ | 
 | 
| HRESULT CreateAttribute( BSTR AttributeName, AttributeTypeCode attrType, long Size, long Precision) | |
Parameters
AttributeName
A string that holds the attribute’s name.
attrType
An enum that determines the attribute type. The following are the possible values:
· AT_UNKNOWN = -1
· AT_TEXT = 0
· AT_INTEGER = 1
· AT_DOUBLE = 2
Size
The size of the attribute (character length).
The number of decimal places. This property has effect onlyif the attrType property is set to AT_DOUBLE.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.