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 Sub New ( _
    factory As Factory, _
    serviceProvider As IServiceProvider, _
    primaryCookie As String, _
    identifier As String _
)
protected AddInBase(
    Factory factory,
    IServiceProvider serviceProvider,
    string primaryCookie,
    string identifier
)
参数
- factory
 类型:Microsoft.Office.Tools.Factory
- serviceProvider
 类型:System.IServiceProvider
- primaryCookie
 类型:System.String
- identifier
 类型:System.String
备注
您不能以编程方式创建 AddInBase 宿主项, 而应当使用在外接程序项目中自动创建的 ThisAddIn 类。 ThisAddIn 类派生自 AddInBase。 有关更多信息,请参见 应用程序级外接程序编程。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。