共用方式為


IDebugArrayObject2::GetBaseIndices

根據陣列中的維度數目,擷取每個索引的基底索引(下限)。

語法

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

參數

dwRank
[in]陣列的維度 (rank) 數目。

dwIndices
[out]陣列的基底索引(下限)。

傳回值

如果成功,則會傳回 S_OK;否則,會傳回錯誤碼。

備註

例如,此函式會針對下列 C# 程式代碼所建立的數位列樣回 '5':

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

另請參閱