nerdexam
Microsoft

MB-500 · Question #137

You create a new class. Class compilation must fail if a specific method in the source code is called. You need to mark the class with the appropriate attribute. Which attribute should you use?

The correct answer is C. SysObsoleteAttribute. https://docs.microsoft.com/en-us/dynamicsax-2012/developer/overview-of-attribute-classes

Develop and test code

Question

You create a new class. Class compilation must fail if a specific method in the source code is called. You need to mark the class with the appropriate attribute. Which attribute should you use?

Options

  • ASysAppSecurityAttribute
  • BSysTestCategory
  • CSysObsoleteAttribute
  • DSysAttribute

How the community answered

(19 responses)
  • A
    11% (2)
  • B
    5% (1)
  • C
    84% (16)

Explanation

https://docs.microsoft.com/en-us/dynamicsax-2012/developer/overview-of-attribute-classes

Topics

#SysObsoleteAttribute#X++ attributes#compilation error#deprecation

Community Discussion

No community discussion yet for this question.

Full MB-500 Practice