Edit

Share via


IDebugArrayObject2::GetBaseIndices

Retrieves the base indices (lower bounds) for each index given the number of dimensions in the array.

Syntax

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

Parameters

dwRank
[in] The number of dimensions (rank) of the array.

dwIndices
[out] The base indices (lower bounds) for the array.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

As an example, this function would return '5' for the array created by the following C# code:

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

See also