Skip to content

Latest commit

 

History

History
13 lines (6 loc) · 523 Bytes

File metadata and controls

13 lines (6 loc) · 523 Bytes

Iec080 - DataType Attribute can only be used on classes if they are Functions

Severity: Error Error

The attribute [DataType] may only be used on class declarations if they also have the [Function] attribute.

Solution

You can also use the provided automatic Code Fix to remove the attribute or put it on the [User] method or [Function] method if there is only one suitable. ( Press Alt + Enter on the Error line to find the Code Fix in the context menu)

Remove the attribute.