AddInBase(Factory, IServiceProvider, String, String) Constructor

Definition

protected:
 AddInBase(Microsoft::Office::Tools::Factory ^ factory, IServiceProvider ^ serviceProvider, System::String ^ primaryCookie, System::String ^ identifier);
protected AddInBase (Microsoft.Office.Tools.Factory factory, IServiceProvider serviceProvider, string primaryCookie, string identifier);
new Microsoft.Office.Tools.AddInBase : Microsoft.Office.Tools.Factory * IServiceProvider * string * string -> Microsoft.Office.Tools.AddInBase
Protected Sub New (factory As Factory, serviceProvider As IServiceProvider, primaryCookie As String, identifier As String)

Parameters

factory
Factory
serviceProvider
IServiceProvider
primaryCookie
String
identifier
String

Remarks

You cannot create AddInBase host items programmatically. Instead, use the ThisAddIn class that is automatically created in your add-in project. The ThisAddIn class derives from AddInBase. For more information, see Programming VSTO Add-Ins.

Applies to