IVsContainedLanguage.SetHost(IVsContainedLanguageHost) Method

Definition

Sets the language host for the secondary language.

public:
 int SetHost(Microsoft::VisualStudio::TextManager::Interop::IVsContainedLanguageHost ^ pHost);
public:
 int SetHost(Microsoft::VisualStudio::TextManager::Interop::IVsContainedLanguageHost ^ pHost);
int SetHost(Microsoft::VisualStudio::TextManager::Interop::IVsContainedLanguageHost const & pHost);
public int SetHost (Microsoft.VisualStudio.TextManager.Interop.IVsContainedLanguageHost pHost);
abstract member SetHost : Microsoft.VisualStudio.TextManager.Interop.IVsContainedLanguageHost -> int
Public Function SetHost (pHost As IVsContainedLanguageHost) As Integer

Parameters

pHost
IVsContainedLanguageHost

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

Returns

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  
);  

Applies to