QuestionQ58

Design and develop AOT elements

You create a new class.

Compilation of the class must fail when a particular method is called in the source code.

You need to decorate the class with the appropriate attribute. Which attribute should you use?

  • A SysAppSecurityAttribute
  • B SysTestCategory
  • C SysObsoleteAttribute
  • D SysAttribute
Explanation

SysObsoleteAttribute can cause the X++ compiler to reject compilation when code calls the marked method; it can also be configured to issue a warning instead of an error. Microsoft Learn: X++ attribute classes

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!