ICorDebugArrayValue::GetElementAtPosition 方法

更新:2007 年 11 月

获取位于给定位置的元素,并将数组当作从零开始的一维数组。

HRESULT GetElementAtPosition (
    [in]  ULONG32          nPosition,
    [out] ICorDebugValue   **ppValue
);

参数

  • nPosition
    [in] 要检索的元素的位置。

  • ppValue
    [out] 一个指向 ICorDebugValue 对象地址的指针,该对象表示此元素的值。

备注

多维数组的布局遵循 C++ 样式的数组布局。

要求

**平台:**请参见 .NET Framework 系统要求

**头文件:**CorDebug.idl

**库:**CorGuids.lib

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

请参见

参考

ICorDebugArrayValue