Which code segment should you recommend?

You are designing a Windows Phone 7 application that has a Live Tile. You need to ensure that the Live Tile is updated every day until the user unpins it. Which code segment should you recommend?

You are designing a Windows Phone 7 application that has a Live Tile. You need to ensure that the Live Tile is updated every day until the user unpins it. Which code segment should you recommend?

A.
ShellTileSchedule sts = new ShellTileSchedule();
sts.Interval = UpdateInterval.EveryDay;
sts.Recurrence = UpdateRecurrence.Interval;
sts.RemoteImageUri = new System.Uri(“& “);
sts.Start();

B.
ShellTileSchedule sts = new ShellTileSchedule();
sts.Interval = UpdateInterval.EveryDay;
sts.Recurrence = UpdateRecurrence.Interval;
sts.RemoteImageUri = new System.Uri(“& “);
sts.StartTime = DateTime.Now;

C.
ShellTileSchedule sts = new ShellTileSchedule();
sts.Interval = UpdateInterval.EveryDay;
sts.MaxUpdateCount = 7;
sts.Recurrence = UpdateRecurrence.OneTime;
sts.RemoteImageUri = new System.Uri(“& “);
sts.Start();

D.
ShellTileSchedule sts = new ShellTileSchedule();
sts.Interval = UpdateInterval.EveryDay;
sts.MaxUpdateCount = 7;
sts.Recurrence = UpdateRecurrence.Interval;
sts.RemoteImageUri = new System.Uri(“& “);
sts.StartTime = DateTime.Now;
sts.Start();



Leave a Reply 0

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