无应用程序退出事件在Outlook? [英] No Application Quit event in Outlook?

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

问题描述

我使用的是12.0互操作的图书馆,这是Outlook 2007中我默认我实际上瞄准了Outlook 2003以2010集成与注册到一个代码示例的退出的事件。



虽然的文档说,有一个应用程序退出的事件的为Outlook应用程序,我不能在 Outlook.Application 对象执行



Visual Studio 2010中似乎确定退出作为一种方法:





问:



如何将一个注册到Outlook应用程序的退出事件? (如果存在的话,或者说被触发时,应用程序退出的事件),如果可能的话提供一些示例代码。



谢谢!


< DIV CLASS =h2_lin>解决方案

只是试图给一个解决方案:可能是你能得到的展望进程并倾听 Process.Exited 事件。


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.

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 seems to identify Quit as a method:

Question:

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.

Thanks!

解决方案

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

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

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