Adds a new field to the type, with the given name, attributes, and field type.
fieldName The name of the field. fieldName cannot contain embedded nulls. type The type of the field attributes The attributes of the field.
The defined field.