ThisAddIn_ShutDown doesn't execute

后端 未结 2 511
清酒与你
清酒与你 2020-12-21 03:04

In my add-in for Outlook, I have the following lines.

private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
  MessageBox.Show(\"Hazaa!\");              


        
2条回答
  •  温柔的废话
    2020-12-21 03:25

    Are you using Outlook 2010?

    Starting in Outlook 2010, Outlook, by default, does not signal add-ins that it is shutting down. Specifically, Outlook no longer calls the OnBeginShutdown and OnDisconnection methods of the IDTExtensibility2 interface during fast shutdown. Similarly, an Outlook add-in written with Microsoft Visual Studio Tools for Office no longer calls the ThisAddin_Shutdown method when Outlook is shutting down.

提交回复
热议问题