IDebugArrayObject2::GetBaseIndices
适用范围:Visual Studio
Visual Studio for Mac
Visual Studio Code
根据数组中的维度数,检索每个索引的基索引 (下限) 。
语法
参数
dwRank
[in]数组的排名) (维度的数目。
dwIndices
[out]基索引 (数组的下限) 。
返回值
如果成功,则返回 S_OK
;否则,返回错误代码。
备注
例如,此函数将为由以下 C# 代码创建的数组返回“5”:
int[] lengths = { 12 };
int[] lowerbounds = { 5 };
Array.CreateInstance(typeof(int), lengths, lowerbounds);