nerdexam
Microsoft

MB2-876 · Question #75

You are developing a synchronous plug-in in Microsoft Dynamics CRM 2011. You need to display a custom error message in a web application dialog when an exception occurs. What should you do?

The correct answer is D. Throw an InvalidPluginExecutionException exception. See the full explanation below for the reasoning.

Question

You are developing a synchronous plug-in in Microsoft Dynamics CRM 2011. You need to display a custom error message in a web application dialog when an exception occurs. What should you do?

Options

  • AUse the Show () method of the MessageBox class.
  • BThrow an ArgumentException exception in an asynchronous plug-in.
  • CWrite the message into an AsyncOperation record related to the plug-in.
  • DThrow an InvalidPluginExecutionException exception.

How the community answered

(51 responses)
  • A
    8% (4)
  • B
    4% (2)
  • C
    16% (8)
  • D
    73% (37)

Community Discussion

No community discussion yet for this question.

Full MB2-876 Practice