exam questions

Exam MB-500 All Questions

View all questions & answers for the MB-500 exam

Exam MB-500 topic 4 question 3 discussion

Actual exam question from Microsoft's MB-500
Question #: 3
Topic #: 4
[All MB-500 Questions]

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. SysEntryPointAttribute
  • B. getAttributes
  • C. SysAttribute
  • D. SysObsoleteAttribute
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
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

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
a709105
2 months ago
Selected Answer: D
D - SysObsoleteAttribute
upvoted 1 times
...
SSM0503
7 months, 2 weeks ago
correct
upvoted 1 times
...
Prollyx
1 year, 6 months ago
Selected Answer: D
Correct
upvoted 1 times
...
asad254
2 years, 4 months ago
Correct
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago