我正在做Outlook外接程序项目。是否有Outlook关闭的事件或事件?我需要在outlook关闭之前调用服务方法。
发布于 2014-07-02 13:29:55
是的,您可以使用应用程序对象的退出事件。
Quit
事件是在Outlook
开始关闭时触发的。
C#示例:
((Outlook.ApplicationEvents_11_Event)Application).Quit
+= new Outlook.ApplicationEvents_11_QuitEventHandler(ThisAddIn_Quit);
void ThisAddIn_Quit()
{
MessageBox.Show("Ciao!");
}
抄袭自这里。
注:
对于Outlook 2010外接程序开发人员这里,还有一些关机提示。
https://stackoverflow.com/questions/24532211
复制相似问题