ICorDebugArrayValue::GetElement 方法

获取给定数组元素的值。

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 Framework 系统要求

头文件: CorDebug.idl、CorDebug.h

**库:**CorGuids.lib

**.NET Framework 版本:**4、3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0

请参见

参考

ICorDebugArrayValue 接口