共用方式為


ICorDebugILFrame::GetLocalVariable 方法

取得此通用中繼語言 (CIL) 堆疊框架中指定區域變數的值。

語法

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

參數

dwIndex [在]此 CIL 堆疊框架中局部變數的索引。

ppValue [出]代表擷取值之 ICorDebugValue 物件位址的指標。

備註

GetLocalVariable 方法可用於 CIL 堆疊框架或 Just-In-Time (JIT) 編譯框架。

需求

平台: 請參閱 .NET 支援的作業系統

標題: CorDebug.idl、CorDebug.h

圖書館: CorGuids.lib

.NET 版本: 自 .NET Framework 1.0 起提供