Skip to content

Latest commit

 

History

History
13 lines (6 loc) · 676 Bytes

File metadata and controls

13 lines (6 loc) · 676 Bytes

Iec019 - Functions and FunctionContainers are not allowed to have attributed fields

Severity: Error Error

Classes with the attribute [Function] or [FunctionContainer] are not allowed to have fields attributed with [Local], [Global], [Output], [Input], [InOut], [InputPort] or [OutputPort].

Solution

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

Remove the attribute. If the field is intended to be an [Input] parameter for the IEC [Function] make it an [Input] parameter of the method where it is used.