Partager via


IVsLanguageDebugInfo.GetLanguageID(IVsTextBuffer, Int32, Int32, Guid) Method

Definition

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

public:
 int GetLanguageID(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer, int iLine, int iCol, [Runtime::InteropServices::Out] Guid % pguidLanguageID);
public int GetLanguageID (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer pBuffer, int iLine, int iCol, out Guid pguidLanguageID);
abstract member GetLanguageID : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer * int * int * Guid -> int
Public Function GetLanguageID (pBuffer As IVsTextBuffer, iLine As Integer, iCol As Integer, ByRef pguidLanguageID As Guid) As Integer

Parameters

pBuffer
IVsTextBuffer

[in] The IVsTextBuffer interface for which the language identifier is required.

iLine
Int32

[in] Integer containing the line index.

iCol
Int32

[in] Integer containing the column index.

pguidLanguageID
Guid

[out] Returns a GUID specifying the language identifier.

Returns

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.

Applies to