更新:2007 年 11 月
表示一维或多维数组的 ICorDebugHeapValue 的子类。
interface ICorDebugArrayValue : ICorDebugHeapValue
{
HRESULT GetBaseIndicies([in] ULONG32 cdim,
[out, size_is(cdim),
length_is(cdim)] ULONG32 indicies[]);
HRESULT GetCount([out] ULONG32 *pnCount);
HRESULT GetDimensions([in] ULONG32 cdim,
[out, size_is(cdim),
length_is(cdim)] ULONG32 dims[]);
HRESULT GetElement([in] ULONG32 cdim,
[in, size_is(cdim),
length_is(cdim)] ULONG32 indices[],
[out] ICorDebugValue **ppValue);
HRESULT GetElementAtPosition([in] ULONG32 nPosition,
[out] ICorDebugValue **ppValue);
HRESULT GetElementType([out] CorElementType *pType);
HRESULT GetRank([out] ULONG32 *pnRank);
HRESULT HasBaseIndicies([out] BOOL *pbHasBaseIndicies);
};
方法
方法 |
说明 |
|---|---|
获取数组中每个维度的基本索引。 |
|
获取数组中的元素数量。 |
|
获取数组的维数。 |
|
获取表示数组中的给定元素的值。 |
|
获取位于给定位置的元素,并将数组当作从零开始的一维数组。 |
|
获取数组中元素的简单类型。 |
|
获取数组中的维数。 |
|
确定该数组是否具有基本索引。 |
备注
ICorDebugArrayValue 支持一维数组和多维数组。
要求
**平台:**请参见 .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