Redaguoti

Bendrinti naudojant


ICorDebugILFrame4::EnumerateLocalVariablesEx Method

[Supported in the .NET Framework 4.5.2 and later versions]

Gets an enumerator for the local variable in the frame, and optionally includes variables added in profiler ReJIT instrumentation.

Syntax

HRESULT EnumerateLocalVariablesEx(
   [in] ILCodeKind flags,
   [out] ICorDebugValueEnum **ppValueEnum
);

Parameters

flags [in] An ILCodeKind enumeration member that specifies whether variables added in profiler ReJIT instrumentation are included in the frame.

ppValueEnum [out] A pointer to the address of an "ICorDebugValueEnum" object that is the enumerator for the local variables in this frame.

Remarks

This method is similar to the EnumerateLocalVariables method, except that it optionally accesses variables added in profiler ReJIT instrumentation. Setting flags to ILCODE_ORIGINAL_IL is equivalent to calling ICorDebugILFrame::EnumerateLocalVariables. Setting flags to ILCODE_REJIT_IL allows the debugger to access the local variables added in profiler ReJIT instrumentation. If the intermediate language (IL) is not instrumented, the enumeration is empty and the method returns S_OK.

The enumerator may not include all of the local variables in the running method, since some of them may not be active.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.5.2

See also