Exam4Training

Which attribute should you use?

You are a Dynamics 365 Finance developer. You create a class.

You need to mark the class to ensure that when code is compiled, the process fails if a specific method is called in the source code.

Which attribute should you use?
A . SysObsoleteAttribute
B . getAttributes
C . SysEntryPointAttribute
D . SysAttribute

Answer: A

Explanation:

One use of the SysObsoleteAttribute class is to notify the compiler that the compile should fail if a particular method is called in the source code. The compiler rejects the compile, and displays the specific message that is stored in this use of the attribute.

Reference: https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-ref/xpp-attribute-classes

Latest MB-500 Dumps Valid Version with 117 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version