IXCLRDataFrame::GetLocalVariableByIndex Method

Gets a local variable by (0-based) index. The name parameter is filled in if name information is available.

Note

This API was originally designed for internal use in the runtime. Although it is now supported for 3rd party use, we recommend working with ICorDebug and ICorProfiler APIs when possible.

Syntax

HRESULT GetLocalVariableByIndex(
    [in] ULONG32 index,
    [out] IXCLRDataValue **localVariable,
    [in] ULONG32 bufLen,
    [out] ULONG32 *nameLen,
    [out, size_is(bufLen)] WCHAR name[]
);

Parameters

index
[out] The 0-based index of the local variable to retrieve.

localVariable
[out] The local variable at the specified index.

bufLen
[in] The length in characters of the name buffer.

nameLen
[out] The number of characters in the local variable name written to the name buffer.

name
[out] The name of the local variable.

Remarks

The provided method is part of the IXCLRDataFrame interface and corresponds to the 10th slot of the virtual method table.

Requirements

Platforms: See System Requirements. Header: None Library: None .NET Framework Versions: Available since 4.7

See also