Microsoft
70-481 · Question #85
You are developing a Windows Store app that includes a handler for the onactivated event. A portion of the event handler is shown in the following code. (Line numbers are included for reference…
The correct answer is C. printManager.onprinttaskrequested = onPrint. See the full explanation below for the reasoning.
Question
You are developing a Windows Store app that includes a handler for the onactivated event. A portion of the event handler is shown in the following code. (Line numbers are included for reference only.) You need to ensure that the app responds to printing requests from the Devices charm. Which code segment should you insert at line 04?
Exhibit
Options
- AprintManager.printer.onprinttaskreguested = onPrint; printManager.printer.
- BprintManager.onPrint = onPrint;
- CprintManager.onprinttaskrequested = onPrint;
- DprintManager.printer.showPrintUIAsync ();
How the community answered
(26 responses)- A4% (1)
- B4% (1)
- C85% (22)
- D8% (2)
Community Discussion
No community discussion yet for this question.
