HostAdapter Class

Provides an extension to 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.

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

[ComVisibleAttribute(true)]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
[GuidAttribute("A0DB5D80-309E-4D55-920E-FB7ED9CDD7E1")]
public sealed class HostAdapter : IVstaHostAdapterInternal, 
	IVstaHostAdapter, IDisposable

Access the host adapter through its corresponding interface IVstaHostAdapter, rather than directly through the class.

The host application does not create the HostAdapter object. Instead, Visual Studio Tools for Applications creates the host adapter and gives the host application access to it. 

For more information about how to access a HostAdapter object, see Dynamically Creating and Modifying Host Items and Host Objects in an Add-in Project.

System.Object
  Microsoft.VisualStudio.Tools.Applications.DesignTime.HostAdapter

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

Show: