Microsoft
70-511 · Question #101
70-511 Question #101: Real Exam Question with Answer & Explanation
The correct answer is D. if (this.Dispatcher.CheckAccess() ). See the full explanation below for the reasoning.
Question
You develop a Windows Presentation Foundation (WPF) application. This application is used to output data trends to customer service representatives. You use threading to keep the UI responsive. You have a function named UpdateUI that updates all of the UI components. You use the following code to update the _Data variable. (Line numbers included for reference only.) You need to update the user interface without knowing if you are on the UI thread. Which code segment should you insert at line 06?
Exhibit
Options
- Athis.Dispatcher.VerifyAccess();
- Bif (this. Dispatcher. CheckAccess ();
- Cthis.Dispatcher.VerifyAccess();
- Dif (this.Dispatcher.CheckAccess() )
Community Discussion
No community discussion yet for this question.
