Rediger

Del via


ICorDebugILFrame::GetLocalVariable Method

Gets the value of the specified local variable in this common intermediate language (CIL) stack frame.

Syntax

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

Parameters

dwIndex [in] The index of the local variable in this CIL stack frame.

ppValue [out] A pointer to the address of an ICorDebugValue object that represents the retrieved value.

Remarks

The GetLocalVariable method can be used either in an CIL stack frame or in a just-in-time (JIT) compiled frame.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 1.0