c# - 事件 : Before Outlook close

标签 c# outlook vsto add-in

我想知道是否可以取消 Outlook 的关闭事件。 我使用这个事件:

  ((Outlook.ApplicationEvents_11_Event)Application).Quit += new Outlook.ApplicationEvents_11_QuitEventHandler(ThisAddIn_Quit);

但为时已晚。此处 Outlook 已关闭。我想问问用户他是否真的确定要关闭 Outlook。是否有可能取消 Outlook 关闭事件? 谢谢。

最佳答案

没有。 Outlook 互操作中没有类似 BeforeClose 的事件。

关于c# - 事件 : Before Outlook close,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31068856/

相关文章:

c# - 如何阻止 C# 编译器输出在 Visual Studio 2015 输出窗口中换行?

outlook - 使用 VSTO 获取 Outlook 插件中的邮箱名称

javascript - 如何在Outlook.com Web邮件中拦截具有Firefox XUL扩展名的电子邮件附件的上传

excel - F# ExcelUsedRange 没有属性或方法

c# - object[,] 在 C# 中是什么意思?

c# - 永远增加你得到-2147483648?

c# - 子文件夹应用程序中的 Web api 路由

c# - 如何获取当前或聚焦的单元格值?

c# - 如何在 gridview asp.net 中显示百分号

c# - Content-Transfer-Encoding 是 HTML header 吗?