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
‘선언
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
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.