ICorDebugArrayValue::GetDimensions 方法

获取此数组每个维中的元素数量。

HRESULT GetDimensions (
    [in] ULONG32         cdim,
    [out, size_is(cdim), length_is(cdim)] 
        ULONG32          dims[]
);

参数

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

    由于 dims 数组的大小与 ICorDebugArrayValue 对象的维数相等,因此此值也是该数组的大小。

  • dims
    [out] 一个由整数组成的数组,其中每个整数都指定此 ICorDebugArrayValue 对象维中的元素数量。

要求

**平台:**请参见 .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 接口