Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Attributes on X++ Types and Methods [AX 2012]

Updated: March 31, 2010

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Any class that inherits from the SysAttribute class is called an attribute. An attribute can be attached to items such as classes and methods. The purpose of an attribute is to represent or store metadata about classes and methods.

The system provides several attributes, including the SysObsoleteAttribute class. One use of the SysObsoleteAttribute class is to tell the X++ compiler that it should fail if a particular method is called in the source code. The X++ compiler rejects the compile, and it displays the specific message that is stored in this use of the attribute.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.