다음을 통해 공유


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

'Declaration
Function GetLanguage ( _
    pHierarchy As IVsHierarchy, _
    itemid As UInteger, _
    pBufferCoordinator As IVsTextBufferCoordinator, _
    <OutAttribute> ByRef ppLanguage As IVsContainedLanguage _
) As Integer
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

Microsoft.VisualStudio.TextManager.Interop Namespace