ICorDebugArrayValue::GetElement 方法

获取给定数组元素的值。

Syntax

HRESULT GetElement (
    [in]  ULONG32          cdim,
    [in, size_is(cdim), length_is(cdim)]
         ULONG32           indices[],
    [out] ICorDebugValue   **ppValue
);

参数

cdim [in]此 ICorDebugArrayValue 对象的维度数。

此值也是数组的大小 indices ,因为它的大小等于对象的维度 ICorDebugArrayValue 数。

indices [in]索引值的数组,每个数组指定对象维度 ICorDebugArrayValue 中的位置。

此值不得为 null。

ppValue [out]指向表示指定元素值的 ICorDebugValue 对象的地址的指针。

要求

平台: 请参阅 .NET 支持的作系统

页眉: CorDebug.idl、CorDebug.h

图书馆: CorGuids.lib

.NET 版本: 自 .NET Framework 1.0 起可用