无应用程序退出事件在Outlook? [英] No Application Quit event in Outlook?
问题描述
我使用的是12.0互操作的图书馆,这是Outlook 2007中我默认我实际上瞄准了Outlook 2003以2010集成与注册到一个代码示例的退出的事件。
虽然的文档说,有一个应用程序退出的事件的为Outlook应用程序,我不能在 Outlook.Application $ C发现。$ C>对象执行
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屋!