nerdexam
Microsoft

MB-500 · Question #242

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals…

The correct answer is B. No. You've hit your limit · resets 4am (America/New_York)

Develop business logic

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You must create a new attribute class in which to mark other classes in the ISV solution and their respective methods with the error levels Warning and Error. You have the following class: (Line numbers are included for reference only.) You need to ensure that the compiler will report an error if code calls the bike method. Solution: Create the following attribute class: Insert the following code at line 01: [ISVObsoleteAttribute(ErrorWarning::Warning, "This class will be deprecated in future releases, please use the Transportation class instead.")] Insert the following code at line 04: [ISVObsoleteAttribute(ErrorWarning::Error, "Deprecated. Please use the bicycle class instead.")] Does the solution meet the goal?

Options

  • AYes
  • BNo

How the community answered

(61 responses)
  • A
    26% (16)
  • B
    74% (45)

Explanation

You've hit your limit · resets 4am (America/New_York)

Topics

#attribute class#error levels#ISV solution#class decoration

Community Discussion

No community discussion yet for this question.

Full MB-500 Practice