Partager via


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

'Declaration
Function SetHost ( _
    pHost As IVsContainedLanguageHost _
) As Integer
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

Microsoft.VisualStudio.TextManager.Interop Namespace