Share via


IEntryPointContract2 Interface

This API supports the Visual Studio Tools for Applications infrastructure and is not intended to be used directly from your code.

Loads, initializes, and handles the shut down of entry point classes in the add-in assembly.

Namespace:  Microsoft.VisualStudio.Tools.Applications.Contract
Assembly:  Microsoft.VisualStudio.Tools.Applications.Contract.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Contract.v9.0.dll)

Syntax

'Declaration
<AddInContractAttribute> _
Public Interface IEntryPointContract2 _
    Inherits IContract
'Usage
Dim instance As IEntryPointContract2
[AddInContractAttribute]
public interface IEntryPointContract2 : IContract
[AddInContractAttribute]
public interface class IEntryPointContract2 : IContract
public interface IEntryPointContract2 extends IContract

Remarks

The add-in designates one or more classes as entry points for the host application to instantiate. There is one default entry point, and there may be additional entry points. For example, in Microsoft Office Excel, a default entry point is the workbook, and the additional entry points are worksheets. The order of entry points is important for instantiation and initialization purposes.

Visual Studio Tools for Applications loads and initializes entry points in the order they are specified in the application manifest. If you are using ClickOnce for add-in deployment, see ClickOnce Application Manifest in the ClickOnce reference documentation in the MSDN library for more information about the XML schema.

Visual Studio Tools for Applications implements this interface and calls its methods internally.

See Also

Reference

IEntryPointContract2 Members

Microsoft.VisualStudio.Tools.Applications.Contract Namespace