Which code snippets should you insert in Target 1, Target 2, and Target 3 to complete the code?

HOTSPOT
You create a class in a namespace named BacJcgrounaTasics by using the following signature:
Public sealed class GetLatestPricesBackgroundTask : IBackgroundTask
The background task connects to a service to retrieve the latest price of the stock information used
by an app.
You add code to unregister any background tasks already registered to the OnNavigatedTo event
handler for the only page in the app.
You need to ensure that the task runs every 15 minutes once the app starts. You have the following
code segment:

Which code snippets should you insert in Target 1, Target 2, and Target 3 to complete the code? (To
answer, select the correct code snippet from each drop-down list in the answer area.)

HOTSPOT
You create a class in a namespace named BacJcgrounaTasics by using the following signature:
Public sealed class GetLatestPricesBackgroundTask : IBackgroundTask
The background task connects to a service to retrieve the latest price of the stock information used
by an app.
You add code to unregister any background tasks already registered to the OnNavigatedTo event
handler for the only page in the app.
You need to ensure that the task runs every 15 minutes once the app starts. You have the following
code segment:

Which code snippets should you insert in Target 1, Target 2, and Target 3 to complete the code? (To
answer, select the correct code snippet from each drop-down list in the answer area.)

Answer:

Explanation:
http://msdn.microsoft.com/enus/library/windows/apps/windows.applicationmodel.background.backgroundtaskbuilder.aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *