共用方式為


ISymENCUnmanagedMethod::GetLineFromOffset 方法

取得與位移相關聯的行資訊。 如果位移參數 (dwOffset) 不是序列點,這個方法會取得與上一個位移相關聯的行資訊。

語法

HRESULT GetLineFromOffset(  
     [in]  ULONG32   dwOffset,  
     [out] ULONG32*  pline,  
     [out] ULONG32*  pcolumn,  
     [out] ULONG32*  pendLine,  
     [out] ULONG32*  pendColumn,  
     [out] ULONG32*  pdwStartOffset);  

參數

dwOffset
[in] ULONG32 包含位移的 。

pline
[out]接收行之 的指標 ULONG32

pcolumn
[out]接收資料行之 的指標 ULONG32

pendLine
[out]接收結束行的 指標 ULONG32

pendColumn
[out]接收結束資料行之 的指標 ULONG32

pdwStartOffset
[out]接收相關聯序列點之 的指標 ULONG32

傳回值

如果方法成功,S_OK;否則,E_FAIL或其他錯誤碼。

規格需求

頭: CorSym.idl、CorSym.h

另請參閱