Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: C# - 如何用简历实现一个捕获所有异常处理程序?
我想添加将捕获未处理异常的方法。我知道如何在 Appdomain 级别执行此操作 - 但我想在应用程序级别执行此操作(添加 Unhandled Exception 方法,以防出现 Unhandled Exception 时调用)
怎么做?