AddInBase.OnShutdown 方法

This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.

命名空间:  Microsoft.Office.Tools
程序集:  Microsoft.Office.Tools.Common.v4.0.Utilities(在 Microsoft.Office.Tools.Common.v4.0.Utilities.dll 中)

语法

声明
Protected Overridable Sub OnShutdown
protected virtual void OnShutdown()

备注

若要在卸载外接程序之前运行代码,请将代码添加到 ThisAddIn 类的 ThisAddIn_Shutdown 方法中。 此方法是 Shutdown 事件的默认事件处理程序。 有关更多信息,请参见 Office 项目中的事件。 有关 ThisAddIn 类的更多信息,请参见应用程序级外接程序编程

.NET Framework 安全性

请参见

参考

AddInBase 类

Microsoft.Office.Tools 命名空间