description | title | ms.date | ms.topic | helpviewer_keywords | author | ms.author | manager | ms.subservice | dev_langs | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the base indices (lower bounds) for each index given the number of dimensions in the array. |
IDebugArrayObject2::GetBaseIndices |
11/04/2016 |
reference |
|
maiak |
maiak |
mijacobs |
debug-diagnostics |
|
Retrieves the base indices (lower bounds) for each index given the number of dimensions in the array.
int GetBaseIndices (
uint dwRank,
out uint[] dwIndices
);
HRESULT GetBaseIndices (
DWORD dwRank,
DWORD* dwIndices
);
dwRank
[in] The number of dimensions (rank) of the array.
dwIndices
[out] The base indices (lower bounds) for the array.
If successful, returns S_OK
; otherwise, returns an error code.
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);