ICorDebugCode2::GetCodeChunks 方法ICorDebugCode2::GetCodeChunks Method

取得此程式碼物件所組成的程式碼區塊。Gets the chunks of code that this code object is composed of.


HRESULT GetCodeChunks (
    [in]  ULONG32     cbufSize,
    [out] ULONG32     *pcnumChunks,
    [out, size_is(cbufSize), length_is(*pcnumChunks)]
        CodeChunkInfo chunks[]


在陣列的大小 chunks[in] Size of the chunks array.

擴展陣列中傳回的區塊數目 chunks[out] The number of chunks returned in the chunks array.

擴展"CodeChunkInfo" 結構的陣列,每一個都代表一個程式碼區塊。[out] An array of "CodeChunkInfo" structures, each of which represents a single chunk of code. 如果的值 cbufSize 為0,則這個參數可以是 null。If the value of cbufSize is 0, this parameter can be null.


程式碼區塊永遠不會重迭,而且會遵循 ICorDebugCode:: GetCode串連它們的順序。The code chunks will never overlap, and they will follow the order in which they would have been concatenated by ICorDebugCode::GetCode. .NET Framework 2.0 版中的 Microsoft 中繼語言 (MSIL) 程式碼物件將會組成單一程式碼區塊。A Microsoft intermediate language (MSIL) code object in the .NET Framework version 2.0 will comprise a single code chunk.


平台: 請參閱 系統需求Platforms: See System Requirements.

標頭: CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 2.0 起可用Available since 2.0.NET Framework Versions: 自 2.0 起可用Available since 2.0