Share via


IHostTypeProviderContract.GetHostType Method

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

Returns the requested type from the host application's object model.

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
Function GetHostType ( _
    canonicalName As String _
) As IRemoteTypeContract
'Usage
Dim instance As IHostTypeProviderContract 
Dim canonicalName As String 
Dim returnValue As IRemoteTypeContract 

returnValue = instance.GetHostType(canonicalName)
IRemoteTypeContract GetHostType(
    string canonicalName
)
IRemoteTypeContract^ GetHostType(
    String^ canonicalName
)
function GetHostType(
    canonicalName : String
) : IRemoteTypeContract

Parameters

  • canonicalName
    Type: System.String

    The canonical name of the requested type.

Return Value

Type: System.AddIn.Contract.Automation.IRemoteTypeContract
The host type that corresponds to the specified canonical name.

See Also

Reference

IHostTypeProviderContract Interface

IHostTypeProviderContract Members

Microsoft.VisualStudio.Tools.Applications.Contract Namespace