A DataTypeFielddefines an abstract representation of a field within a UADataTypethat can be used by design tools to automatically create serialization code. The fields in the DataTypeFieldtype are defined in Table F.13.

Table F.13– DataTypeField

Element

Type

Description

Name

String

A name for the field that is unique within the DataTypeDefinition.

SymbolicName

String

A symbolic name for the field that can be used in autogenerated code.

It should only be specified if the Namecannot be used for this purpose.

Only letters, digits or the underscore (‘_’) are permitted.

DisplayName

LocalizedText []

A display name for the field in multiple locales.

DataType

NodeId

The NodeIdof the DataTypefor the field.

This NodeIdcan refer to another Nodewith its own DataTypeDefinition.

This field is not specified for subtypes of Enumeration.

ValueRank

Int32

The value rank for the field.

It shall be Scalar(-1) or a fixed rank Array(>=1).

This field is not specified for subtypes of Enumeration.

ArrayDimensions

String

The maximum length of an array.

This field is a comma separated list of unsigned integer values. The list has a number of elements equal to the ValueRank.

The value is 0 if the maximum is not known for a dimension.

This field is not specified if the ValueRank<= 0.

This field is not specified for subtypes of Enumerationor for DataTypeswith the OptionSetValues Property.

MaxStringLength

UInt32

The maximum length of a Stringor ByteStringvalue.

If not known the value is 0.

The value is 0 if the DataTypeis not Stringor ByteString.

If the ValueRank> 0 the maximum applies to each element in the array.

This field is not specified for subtypes of Enumerationor for DataTypeswith the OptionSetValues Property.

Description

LocalizedText []

A description for the field in multiple locales.

Value

Int32

The value associated with the field.

This field is only specified for subtypes of Enumerationand OptionSet DataTypes. For OptionSetsthe value is the number of the bit associated with the field.

IsOptional

Boolean

The field indicates if a data type field in a structure is optional.

This field is optional. The default value is false.

This field is not specified for subtypes of Enumerationand Union.