Share via


IDebugArrayObject2::GetBaseIndices

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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

Syntax

HRESULT GetBaseIndices (
   DWORD  dwRank,
   DWORD* dwIndices
);
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