ICorDebugILFrame::GetLocalVariable 方法ICorDebugILFrame::GetLocalVariable Method

取得此 Microsoft 中繼語言 (MSIL) 堆疊框架的指定區域變數值。Gets the value of the specified local variable in this Microsoft intermediate language (MSIL) stack frame.

語法Syntax

HRESULT GetLocalVariable (  
    [in] DWORD                  dwIndex,  
    [out] ICorDebugValue        **ppValue  
);  

參數Parameters

dwIndex
在這個 MSIL 堆疊框架中區域變數的索引。[in] The index of the local variable in this MSIL stack frame.

ppValue
[out] 代表擷取值之 ICorDebugValue 物件的位置指標。[out] A pointer to the address of an ICorDebugValue object that represents the retrieved value.

備註Remarks

GetLocalVariable方法可以在 MSIL 堆疊框架中或在即時 (JIT) 編譯的框架中使用。The GetLocalVariable method can be used either in an MSIL stack frame or in a just-in-time (JIT) compiled frame.

需求Requirements

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

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

程式庫: CorGuids.libLibrary: CorGuids.lib

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