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.
我正在为我的项目使用插件框架,并且我正在使用以下代码来关闭插件。
AddInController ac = AddInController.GetAddInController(job); ac.shutdown();
这工作正常,在正常情况下关闭并从内存中卸载插件。如果用 Addin 编写的代码抛出任何异常,则上述无法关闭插件。
我应该写什么来处理这种情况?
谢谢, 丹尼斯