nerdexam
Microsoft

70-518 · Question #49

You are designing an application by using Windows Presentation Foundation (WPF), Microsoft .NET Framework 4, and Microsoft SQL Server 2008. The application will contain several forms that include…

The correct answer is A. Implement the IDataErrorlnfo interface in the data class of the application. See the full explanation below for the reasoning.

Question

You are designing an application by using Windows Presentation Foundation (WPF), Microsoft .NET Framework 4, and Microsoft SQL Server 2008. The application will contain several forms that include custom data validators. You need to ensure that data is validated before the database updates occur. You also need to ensure that the validation logic can be reused. How should you design the validation?

Options

  • AImplement the IDataErrorlnfo interface in the data class of the application.
  • BImplement the INotifyPropertyChanged interface in the data class of the application.
  • CSubscribe to the MouseLeave event for all user interface (UI) components of the application.
  • DSubscribe to the TextChanged event for all user interface (UI) components of the application.

How the community answered

(38 responses)
  • A
    74% (28)
  • B
    13% (5)
  • C
    5% (2)
  • D
    8% (3)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice