Microsoft.VisualStudio.Tools.Applications.DesignTime.Interop Namespace

The Microsoft.VisualStudio.Tools.Applications.DesignTime.Interop namespace defines interfaces that are used to automate a Visual Studio Tools for Applications project from outside the Visual Studio process.

You can access this interface by calling the Extender property of the current Project instance with the string parameter set to “VSTAHostAdapter2007”. You must cast the returned object to an IVstaHostAdapter. Use the DTE object to retrieve the current Project instance.

For managed host applications, you can use the static property ExtenderName to avoid hard-coding the value “VSTAHostAdapter2007”.

Interfaces

  Interface Description
Public interface IActivateEventArgs Defines an interface that corresponds to the event data of the ActivateProjectHostItem event and that enables the COM host application to consume the event.
Public interface ICancelEventArgs Defines an interface that corresponds to the event data of an event that indicates a cancellation or a closing operation.
Public interface IDocumentSavedEventArgs Defines an interface that corresponds to the event data of the DocumentSaved event and that enables the COM host application to consume the event.
Public interface IVstaHostAdapter Provides a COM-visible interface for accessing a Visual Studio Tools for Applications host adapter. It extends the Visual Studio object model for Visual Studio Tools for Applications projects and enables the host application to access and customize the Visual Studio Tools for Applications project.
Public interface IVstaHostAdapterEvents Provides a COM-visible interface that defines event handlers that the COM host application can implement to consume Visual Studio Tools for Applications host adapter events.
Public interface IVstaProjectHostItem Defines a COM-visible interface for accessing a host item in the Visual Studio Tools for Applications project, which appears as a code file in Project Explorer.
Public interface IVstaProjectHostItemCollection Defines a COM-visible interface for accessing a collection of host items.