IVsLanguageDebugInfo.GetLanguageID 方法

返回相应的调试器后端 “语言 ID”。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function GetLanguageID ( _
    pBuffer As IVsTextBuffer, _
    iLine As Integer, _
    iCol As Integer, _
    <OutAttribute> ByRef pguidLanguageID As Guid _
) As Integer
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

参数

  • iLine
    类型:Int32

    [in] 包含行索引的整数。

  • iCol
    类型:Int32

    [in] 包含列索引的整数。

  • pguidLanguageID
    类型:Guid%

    [out] 返回指定语言标识符的 GUID。

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textmgr.idl:

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

返回相应的调试器后端语言标识符。 这不是调试引擎标识符,则应由当前项目中获取或其他位置的知道此语言的源的生成方式。

.NET Framework 安全性

请参阅

参考

IVsLanguageDebugInfo 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间