Skip to content

Latest commit

 

History

History
59 lines (50 loc) · 1.27 KB

idebugarrayobject2-getbaseindices.md

File metadata and controls

59 lines (50 loc) · 1.27 KB
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
GetBaseIndices
IDebugArrayObject2::GetBaseIndices
maiak
maiak
mijacobs
debug-diagnostics
CPP
CSharp

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