Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 713 Bytes

File metadata and controls

15 lines (8 loc) · 713 Bytes

Iec082 - DataType Attribute for Output parameters positioned on class or method instead

Severity: Error Error

The attribute [DataType] may not be used on Output parameters. Instead it is defined on the method if they are [User] methods or [Function] methods inside a class with [FunctionContainer] attribute. If the method is the [Execution] __Process method the [DataType] attribute is positioned on the [Function] class.

Solution

You can also use the provided automatic Code Fix to remove the attribute and put it in the correct place. ( Press Alt + Enter on the Error line to find the Code Fix in the context menu)

Move the attribute to the correct place.