Condividi tramite


IVsContainedLanguageFactory.GetLanguage Method

Returns an IVsContainedLanguage object that a primary language can use to delegate certain responsibilities for managing a contained language.

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

Syntax

'Dichiarazione
Function GetLanguage ( _
    pHierarchy As IVsHierarchy, _
    itemid As UInteger, _
    pBufferCoordinator As IVsTextBufferCoordinator, _
    <OutAttribute> ByRef ppLanguage As IVsContainedLanguage _
) As Integer
'Utilizzo
Dim instance As IVsContainedLanguageFactory
Dim pHierarchy As IVsHierarchy
Dim itemid As UInteger
Dim pBufferCoordinator As IVsTextBufferCoordinator
Dim ppLanguage As IVsContainedLanguage
Dim returnValue As Integer

returnValue = instance.GetLanguage(pHierarchy, _
    itemid, pBufferCoordinator, ppLanguage)
int GetLanguage(
    IVsHierarchy pHierarchy,
    uint itemid,
    IVsTextBufferCoordinator pBufferCoordinator,
    out IVsContainedLanguage ppLanguage
)
int GetLanguage(
    [InAttribute] IVsHierarchy^ pHierarchy, 
    [InAttribute] unsigned int itemid, 
    [InAttribute] IVsTextBufferCoordinator^ pBufferCoordinator, 
    [OutAttribute] IVsContainedLanguage^% ppLanguage
)
abstract GetLanguage : 
        pHierarchy:IVsHierarchy * 
        itemid:uint32 * 
        pBufferCoordinator:IVsTextBufferCoordinator * 
        ppLanguage:IVsContainedLanguage byref -> int 
function GetLanguage(
    pHierarchy : IVsHierarchy, 
    itemid : uint, 
    pBufferCoordinator : IVsTextBufferCoordinator, 
    ppLanguage : IVsContainedLanguage
) : int

Parameters

Return Value

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

Remarks

Com Signature

From singlefileeditor.idl:

HRESULT GetLanguage(
   [in]          IVsHierarchy*             pHierarchy,
   [in]          VSITEMID                  itemid,
   [in]          IVsTextBufferCoordinator* pBufferCoordinator,
   [out, retval] IVsContainedLanguage**    ppLanguage
);

.NET Framework Security

See Also

Reference

IVsContainedLanguageFactory Interface

IVsContainedLanguageFactory Members

Microsoft.VisualStudio.TextManager.Interop Namespace