IDebugArrayObject2::GetBaseIndicesIDebugArrayObject2::GetBaseIndices
Recupera os índices de base (limites inferiores) para cada índice, considerando o número de dimensões na matriz.Retrieves the base indices (lower bounds) for each index given the number of dimensions in the array.
SintaxeSyntax
HRESULT GetBaseIndices (
DWORD dwRank,
DWORD* dwIndices
);
int GetBaseIndices (
uint dwRank,
out uint[] dwIndices
);
ParâmetrosParameters
dwRank
no O número de dimensões (classificação) da matriz.[in] The number of dimensions (rank) of the array.
dwIndices
fora Os índices de base (limites inferiores) para a matriz.[out] The base indices (lower bounds) for the array.
Valor RetornadoReturn Value
Se bem-sucedido, retorna S_OK
; caso contrário, retorna um código de erro.If successful, returns S_OK
; otherwise, returns an error code.
ComentáriosRemarks
Por exemplo, essa função retornaria ' 5 ' para a matriz criada pelo seguinte código C#: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);