IDebugArrayObject2::GetBaseIndices

根据数组中维度的数量,检索每个索引的基索引(下限)。

语法

int GetBaseIndices (
   uint       dwRank,
   out uint[] dwIndices
);

参数

dwRank
[in]数组的维度数(排名)。

dwIndices
[out]数组的基本索引(下限)。

返回值

如果成功,则返回 S_OK;否则,返回错误代码。

备注

例如,此函数将为以下 C# 代码创建的数组返回“5” :

int[] lengths = { 12 };
int[] lowerbounds = { 5 };
Array.CreateInstance(typeof(int), lengths, lowerbounds);

另请参阅