IVsContainedLanguage.SetHost Method

Sets the language host for the secondary language.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Déclaration
Function SetHost ( _
    pHost As IVsContainedLanguageHost _
) As Integer
'Utilisation
Dim instance As IVsContainedLanguage
Dim pHost As IVsContainedLanguageHost
Dim returnValue As Integer

returnValue = instance.SetHost(pHost)
int SetHost(
    IVsContainedLanguageHost pHost
)
int SetHost(
    [InAttribute] IVsContainedLanguageHost^ pHost
)
abstract SetHost : 
        pHost:IVsContainedLanguageHost -> int 
function SetHost(
    pHost : IVsContainedLanguageHost
) : int

Parameters

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Remarks

The pHost parameter can be a null value in which case, the contained language should release any previously cached language host interface.

COM Signature

From singlefileeditor.idl:

HRESULT IVsContainedLanguage::SetHost(
   [in] IVsContainedLanguageHost* pHost
);

.NET Framework Security

See Also

Reference

IVsContainedLanguage Interface

IVsContainedLanguage Members

Microsoft.VisualStudio.TextManager.Interop Namespace