你好,
这个是可以捕获所有异常的。
1. 在可能发生异常的地方和容易发生异常的代码块加上异常处理。这样可以避免一些可以处理的异常进入UnhandledException
的处理节点。例如,如果程序目前在运行一些耗时操作,或者发生假死,这时候有可能不会走到UnhandledException
节点。
2. 关于处理WP
开发中所有的异常,建议参考这篇文章,http://www.markermetro.com/2013/01/technical/handling-unhandled-exceptions-with-asyncawait-on-windows-8-and-windows-phone-8/
3. 捕获异常之后如果不加处理,同样会崩溃掉。
谢谢!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.