You need to ensure that unhandled errors and exceptions are never displayed to users

You are preparing to deploy a Windows Store app to the marketplace.
You need to ensure that unhandled errors and exceptions are never displayed to users.
What should you do?

You are preparing to deploy a Windows Store app to the marketplace.
You need to ensure that unhandled errors and exceptions are never displayed to users.
What should you do?

A.
In the app object, wrap the call to the Window.Current.Activate() method in a try-catch statement
to handle any exceptions that occur.

B.
Open the Exceptions window in Visual Studio and clear the check box for unhandled exceptions
for the Common Language Runtime.

C.
Write a handler for the UnhandledException event and set the Handled property on the
UnhandledExceptionEventArgs object to true.

D.
Write a handler for the UnhandledException event and set the CancelBubble property on the
UnhandledExceptionEventArgs object to true.

Explanation:
http://msdn.microsoft.com/enus/library/windows/apps/windows.ui.xaml.unhandledexceptioneventargs.handled.aspx



Leave a Reply 0

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