AX#

Search Results for

    Show / Hide Table of Contents

    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 example demonstrates how to prevent the ixc builder to compile specific property into specific output group.
    // 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';
    Inheritance
    object
    Attribute
    CompilerOmitsAttribute
    Inherited Members
    Attribute.Equals(object)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetHashCode()
    Attribute.IsDefaultAttribute()
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.Match(object)
    Attribute.TypeId
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: AXSharp.Connector
    Assembly: AXSharp.Connector.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property)]
    public class CompilerOmitsAttribute : Attribute

    Constructors

    | Edit this page View Source

    CompilerOmitsAttribute(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

    | Edit this page View Source

    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 Source

    Omissions

    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>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFx. © MTS spol. s r.o., MTS spol. s r.o., and awesome contributors