IVsContainedLanguage::SetHost Method (IVsContainedLanguageHost^)

 

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)

int SetHost(
	IVsContainedLanguageHost^ pHost
)

Parameters

pHost
Type: Microsoft.VisualStudio.TextManager.Interop::IVsContainedLanguageHost^

[in] An IVsContainedLanguageHost object representing the new language host. Can be a null value (see Remarks for details).

Return Value

Type: System::Int32

If successful, returns S_OK; otherwise, returns an error code.

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

From singlefileeditor.idl:

HRESULT IVsContainedLanguage::SetHost(
   [in] IVsContainedLanguageHost* pHost
);
Return to top
Show: