Partager via


OutlookAddIn Interface

Definition

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

public interface class OutlookAddIn : IDisposable, Microsoft::Office::Tools::AddIn, System::ComponentModel::IComponent, System::Windows::Forms::IBindableComponent
[System.Runtime.InteropServices.Guid("af8e9f42-f1c8-4a6c-8d64-d21168c8ad80")]
public interface OutlookAddIn : IDisposable, Microsoft.Office.Tools.AddIn, System.ComponentModel.IComponent, System.Windows.Forms.IBindableComponent
[<System.Runtime.InteropServices.Guid("af8e9f42-f1c8-4a6c-8d64-d21168c8ad80")>]
type OutlookAddIn = interface
    interface AddIn
    interface IBindableComponent
    interface IComponent
    interface IDisposable
Public Interface OutlookAddIn
Implements AddIn, IBindableComponent, IComponent, IDisposable
Attributes
Implements

Remarks

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

For more information, see Programming VSTO Add-Ins.

Note

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.

Usage

This documentation describes the version of this type that is used in Office projects that target the .NET Framework 4 or later. 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: http://go.microsoft.com/fwlink/?LinkId=160658.

Properties

DataHost (Inherited from AddIn)
DefaultExtension

Gets the default extension for this AddIn object.

(Inherited from AddIn)
Extension

Gets a custom extension for this AddIn object.

(Inherited from AddIn)
HostContext (Inherited from AddIn)
ItemProvider (Inherited from AddIn)
Tag (Inherited from AddIn)

Events

BindingContextChanged (Inherited from AddIn)
FormRegionFactoryResolve

Occurs when the add-in loads, and when a form region name that is specified in the registry does not match the name of any form regions defined in the add-in.

Shutdown

Occurs when the add-in is about to be unloaded.

(Inherited from AddIn)
Startup

Occurs when the add-in is loaded, after all the initialization code in the assembly has run.

(Inherited from AddIn)

Applies to