共用方式為


ISymUnmanagedWriter5::MapTokenToSourceSpan 方法

將指定的元資料標記對應至指定原始程式檔中的指定原始程式列範圍。

必須在 呼叫 OpenMapTokensToSourceSpans 方法CloseMapTokensToSourceSpans 方法之間呼叫。

語法

HRESULT MapTokenToSourceSpan(    [in] mdToken token,    [in] ISymUnmanagedDocumentWriter* document,    [in] ULONG32 line,    [in] ULONG32 column,    [in] ULONG32 endLine,    [in] ULONG32 endColumn);  

參數

參數 描述
token
document
line
column
endLine
endColumn

傳回值

傳回 HRESULT

規格需求

頭: CorSym.idl、CorSym.h

另請參閱