IVsLanguageDebugInfo.GetLanguageID 方法
傳回相對應的偵錯工具後端 」 語言識別碼。
命名空間: 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
參數
pBuffer
類型:Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer[in]IVsTextBuffer的語言識別項是必要的介面。
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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。