Outlook 中没有应用程序退出事件? [英] No Application Quit event in Outlook?

查看:33
本文介绍了Outlook 中没有应用程序退出事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 12.0 Interop 库,这是 Outlook 2007 的默认库.我实际上的目标是将 Outlook 2003 到 2010 与注册到 quit 事件的代码示例集成.

I'm using the 12.0 Interop library, which is the default for Outlook 2007. I'm actually aiming for Outlook 2003 to 2010 integration with a code example that registers to a quit event.

即使 docs 说Outlook 应用程序有一个应用程序退出 事件,我在 Outlook.Application 对象实现中找不到它.

Even though the docs say that there is an application Quit event for the Outlook app, I can't find it in the Outlook.Application object implementation.

Visual Studio 2010 似乎将 Quit 识别为一种方法:

Visual Studio 2010 seems to identify Quit as a method:

问题:

如何注册 Outlook 应用程序的退出事件?(如果有一个,或应用程序退出时触发的任何事件)如果可能,请提供一些示例代码.

How would one register to the Outlook application's Quit event? (if there is one, or any event that is triggered when the application quits) If possible provide some example code.

谢谢!

推荐答案

尝试给出一个解决方案:可能你可以得到 Outlook process 并监听 Process.Exited 事件.

Just try to give a solution: may be you can get Outlook process and listen for Process.Exited event.

这篇关于Outlook 中没有应用程序退出事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆