在您使用 Visual Studio 创建的应用程序级外接程序中为 ThisAddIn 类提供基类。
继承层次结构
System.Object
Microsoft.Office.Tools.AddInBase
Microsoft.Office.Tools.Outlook.OutlookAddInBase
命名空间: Microsoft.Office.Tools
程序集: Microsoft.Office.Tools.Common.v4.0.Utilities(在 Microsoft.Office.Tools.Common.v4.0.Utilities.dll 中)
语法
声明
Public MustInherit Class AddInBase _
Implements IAddInExtension, IExtension, EntryPoint, ISupportInitialize, _
IBindableComponent, IComponent, IDisposable
public abstract class AddInBase : IAddInExtension,
IExtension, EntryPoint, ISupportInitialize, IBindableComponent, IComponent,
IDisposable
AddInBase 类型公开以下成员。
构造函数
| 名称 | 说明 | |
|---|---|---|
![]() |
AddInBase | 基础结构。 |
页首
属性
| 名称 | 说明 | |
|---|---|---|
![]() |
Base | 获取此 AddInBase 对象扩展的 AddIn 对象。 |
![]() |
BindingContext | 基础结构。 |
![]() |
DataBindings | 基础结构。 |
![]() |
DataHost | 基础结构。 |
![]() |
HostContext | 基础结构。 |
![]() |
ItemProvider | 基础结构。 |
![]() |
Site | 基础结构。 |
![]() |
Tag | 基础结构。 |
页首
方法
| 名称 | 说明 | |
|---|---|---|
![]() |
BeginInit | 基础结构。 |
![]() |
CreateRibbonExtensibilityObject | 返回实现 Microsoft.Office.Core.IRibbonExtensibility 接口的对象。 |
![]() |
CreateRibbonObjects | 将 IRibbonExtension 对象的数组返回给 CreateRibbonExtensibilityObject 方法。表示“功能区”要显示运行时间的对象。 |
![]() |
Dispose | 释放由 AddInBase 占用的资源。 |
![]() |
EndInit | 基础结构。 |
![]() |
Equals | 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。) |
![]() |
Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) |
![]() |
FinishInitialization | 基础结构。 |
![]() |
GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) |
![]() |
GetHostItem<T> | 基础结构。 |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
Initialize | 基础结构。 |
![]() |
InitializeDataBindings | 基础结构。 |
![]() |
MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) |
![]() |
OnShutdown | 基础结构。 |
![]() |
OnStartup | 基础结构。 |
![]() |
RequestComAddInAutomationService | 返回您的外接程序中可以供其他解决方案使用的对象。 |
![]() |
RequestService | 返回一个扩展 Microsoft Office 应用程序中的某项功能的对象。 |
![]() |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
事件
| 名称 | 说明 | |
|---|---|---|
![]() |
BindingContextChanged | 基础结构。 |
![]() |
Disposed | 基础结构。 |
![]() |
Shutdown | 当外接程序即将卸载时发生。 |
![]() |
Startup | 在加载外接程序、且程序集中的所有初始化代码都已运行时发生。 |
页首
显式接口实现
| 名称 | 说明 | |
|---|---|---|
![]() ![]() |
EntryPoint.BeginInit | 基础结构。 |
![]() ![]() |
EntryPoint.EndInit | 基础结构。 |
![]() ![]() |
EntryPoint.FinishInitialization | 基础结构。 |
![]() ![]() |
EntryPoint.Initialize | 基础结构。 |
![]() ![]() |
EntryPoint.InitializeDataBindings | 基础结构。 |
![]() ![]() |
EntryPoint.OnShutdown | 基础结构。 |
![]() ![]() |
EntryPoint.OnStartup | 基础结构。 |
![]() ![]() |
IAddInExtension.CreateRibbonExtensibilityObject | 基础结构。 |
![]() ![]() |
IAddInExtension.CreateRibbonObjects | 基础结构。 |
![]() ![]() |
IAddInExtension.RequestComAddInAutomationService | 基础结构。 |
![]() ![]() |
IAddInExtension.RequestService | 基础结构。 |
![]() ![]() |
IExtension.ExtensionBase | 基础结构。 |
页首
备注
AddInBase 类提供您使用 Visual Studio 中的 Office 开发工具创建的所有外接程序所共享的功能。 外接程序项目中的 ThisAddIn 类从 AddInBase 类派生其大多数成员。 有关更多信息,请参见 应用程序级外接程序编程。
用法
此类型只能在面向 .NET Framework 4 的 Office 项目中使用。定义此类型的程序集不属于 Visual Studio Tools for Office Runtime 的一部分。您必须与解决方案一起部署此程序集。有关更多信息,请参见 Visual Studio Tools for Office Runtime 中的程序集。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)