AddIn Interface

Defines the core functionality of add-ins that you create by using the Office development tools in Visual Studio.

Namespace:  Microsoft.Office.Tools
Assemblies:   Microsoft.Office.Tools.Common.v4.0.Utilities (in Microsoft.Office.Tools.Common.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
  Microsoft.Office.Tools.Outlook.v4.0.Utilities (in Microsoft.Office.Tools.Outlook.v4.0.Utilities.dll)

public interface AddIn : IBindableComponent, IComponent, 

The AddIn type exposes the following members.

Public propertyBindingContextGets or sets the collection of currency managers for the IBindableComponent. (Inherited from IBindableComponent.)
Public propertyDataBindingsGets the collection of data-binding objects for this IBindableComponent. (Inherited from IBindableComponent.)
Public propertyDataHostInfrastructure.
Public propertyDefaultExtensionGets the default extension for this AddIn object.
Public propertyExtensionGets a custom extension for this AddIn object.
Public propertyHostContextInfrastructure.
Public propertyItemProviderInfrastructure.
Public propertySiteGets or sets the ISite associated with the IComponent. (Inherited from IComponent.)
Public propertyTagInfrastructure.

Public method_VtblGap1_1Infrastructure.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)

Public eventBindingContextChangedInfrastructure.
Public eventDisposedRepresents the method that handles the Disposed event of a component. (Inherited from IComponent.)
Public eventShutdownOccurs when the add-in is about to be unloaded.
Public eventStartupOccurs when the add-in is loaded, after all the initialization code in the assembly has run.

When you create an application-level add-in by using the Office development tools in Visual Studio, you typically do not use the AddIn interface directly. Instead, use the generated ThisAddIn class in your project. The ThisAddIn class derives most of its members from the AddInBase class. This base class redirects all calls to its members to an internal implementation of the AddIn interface in the Visual Studio Tools for Office runtime.

For more information, see Programming Application-Level Add-Ins.


This interface is implemented by the Visual Studio Tools for Office runtime. It is not intended to be implemented in your code. For more information, see Visual Studio Tools for Office Runtime Overview.


This documentation describes the version of this type that is used in Office projects that target the .NET Framework 4 and the .NET Framework 4.5. In projects that target the .NET Framework 3.5, this type might have different members and the code examples provided for this type might not work. For documentation about this type in projects that target the .NET Framework 3.5, see the following reference section in the Visual Studio 2008 documentation: