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)

Syntax

'Declaration
<ComVisibleAttribute(True)> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
<GuidAttribute("A0DB5D80-309E-4D55-920E-FB7ED9CDD7E1")> _
Public NotInheritable Class HostAdapter _
    Implements IVstaHostAdapterInternal, IVstaHostAdapter, IDisposable
'Usage
Dim instance As HostAdapter
[ComVisibleAttribute(true)]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
[GuidAttribute("A0DB5D80-309E-4D55-920E-FB7ED9CDD7E1")]
public sealed class HostAdapter : IVstaHostAdapterInternal, 
    IVstaHostAdapter, IDisposable
[ComVisibleAttribute(true)]
[ClassInterfaceAttribute(ClassInterfaceType::None)]
[GuidAttribute(L"A0DB5D80-309E-4D55-920E-FB7ED9CDD7E1")]
public ref class HostAdapter sealed : IVstaHostAdapterInternal, 
    IVstaHostAdapter, IDisposable
public final class HostAdapter implements IVstaHostAdapterInternal, IVstaHostAdapter, IDisposable

Remarks

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.

Inheritance Hierarchy

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

Thread Safety

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

See Also

Reference

HostAdapter Members

Microsoft.VisualStudio.Tools.Applications.DesignTime Namespace