Which code segment should you use?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application uses several asynchronous operations to calculate data that is displayed to the user. An operation named tommorowsWeather performs calculations that will be used by other operations. You need to ensure that tommorowsWeather runs at the highest possible priority. Which code segment should you use?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application uses several asynchronous operations to calculate data that is displayed to the user. An operation named tommorowsWeather performs calculations that will be used by other operations. You need to ensure that tommorowsWeather runs at the highest possible priority. Which code segment should you use?

A.
tomorrowsWeather.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, new OneArgDelegate(UpdateUserInterface), weather);

B.
tomorrowsWeather.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.DataBind, new OneArgDelegate(UpdateUserInterface), weather);

C.
tomorrowsWeather.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Send, new OneArgDelegate(UpdateUserInterface), weather);

D.
tomorrowsWeather.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Render, new OneArgDelegate(UpdateUserInterface), weather);



Leave a Reply 0

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