Condividi tramite


IVsLanguageDebugInfo.GetLanguageID Method

Returns the corresponding debugger back-end "language ID".

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

Syntax

'Dichiarazione
Function GetLanguageID ( _
    pBuffer As IVsTextBuffer, _
    iLine As Integer, _
    iCol As Integer, _
    <OutAttribute> ByRef pguidLanguageID As Guid _
) As Integer
'Utilizzo
Dim instance As IVsLanguageDebugInfo
Dim pBuffer As IVsTextBuffer
Dim iLine As Integer
Dim iCol As Integer
Dim pguidLanguageID As Guid
Dim returnValue As Integer

returnValue = instance.GetLanguageID(pBuffer, _
    iLine, iCol, pguidLanguageID)
int GetLanguageID(
    IVsTextBuffer pBuffer,
    int iLine,
    int iCol,
    out Guid pguidLanguageID
)
int GetLanguageID(
    [InAttribute] IVsTextBuffer^ pBuffer, 
    [InAttribute] int iLine, 
    [InAttribute] int iCol, 
    [OutAttribute] Guid% pguidLanguageID
)
abstract GetLanguageID : 
        pBuffer:IVsTextBuffer * 
        iLine:int * 
        iCol:int * 
        pguidLanguageID:Guid byref -> int 
function GetLanguageID(
    pBuffer : IVsTextBuffer, 
    iLine : int, 
    iCol : int, 
    pguidLanguageID : Guid
) : int

Parameters

  • iLine
    Type: System.Int32
    [in] Integer containing the line index.
  • iCol
    Type: System.Int32
    [in] Integer containing the column index.
  • pguidLanguageID
    Type: System.Guid%
    [out] Returns a GUID specifying the language identifier.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsLanguageDebugInfo::GetLanguageID(
   [in] IVsTextBuffer *pBuffer, 
   [in] long iLine, 
   [in] long iCol, 
   [out] GUID *pguidLanguageID
);

Return the corresponding debugger back-end language identifier. This is not the debug engine identifier, which should be obtained by the current project or somewhere else that knows how the sources for this language are being built.

.NET Framework Security

See Also

Reference

IVsLanguageDebugInfo Interface

IVsLanguageDebugInfo Members

Microsoft.VisualStudio.TextManager.Interop Namespace