Class CompilerOmitsAttribute
Prevents ixc builder to create a member for specific group of output type (Shadow, Plain, Onliner).
note
This attribute must be declared in the PLC code to be effective during build process.
// This will not compile to 'omitsInPlainString' member into respective 'Plain' type.
{#ix-attr:[CompilerOmits(CompilerOmissionGroups.BuilderPlainer))]}
ommitsInPlainString : STRING(50) := 'THIS IS OMMITED IN PLAINER';
// This will not compile to 'ommitsInPlainAndShadowerInterfaceString' member into respective 'Plain' type and Shadow interface.
{#ix-attr:[CompilerOmits(CompilerOmissionGroups.BuilderPlainer, CompilerOmissionGroups.BuilderShadowerInterface))]}
ommitsInPlainAndShadowerInterfaceString : STRING(50) := 'THIS IS OMMITED IN PLAINER';
Inherited Members
Namespace: AXSharp.Connector
Assembly: AXSharp.Connector.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public class CompilerOmitsAttribute : Attribute
Constructors
| Edit this page View SourceCompilerOmitsAttribute(params CompilerOmissionGroups[])
Creates an instance of CompilerOmitsAttribute.
Declaration
public CompilerOmitsAttribute(params CompilerOmissionGroups[] omissions)
Parameters
Type | Name | Description |
---|---|---|
CompilerOmissionGroups[] | omissions | Determines group(s) of output type where the member shall be omitted. CompilerOmissionGroups |
CompilerOmitsAttribute(params string[])
Creates an instance of CompilerOmitsAttribute.
Declaration
public CompilerOmitsAttribute(params string[] omissions)
Parameters
Type | Name | Description |
---|---|---|
string[] | omissions | Determines group(s) of output type where the member shall be omitted. |
Properties
| Edit this page View SourceOmissions
Gets the list of groups of output type in which the member will not be included.
Declaration
public IEnumerable<string> Omissions { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |