Compartir a través de


IDebugArrayObject::GetRank

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

Gets the rank of the array, that is, the number of dimensions.

Syntax

HRESULT GetRank( 
   DWORD* pdwRank
);
int GetRank(
   out uint pdwRank
);

Parameters

pdwRank
[out] Returns the rank.

Return Value

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

Remarks

Use the GetDimensions method to retrieve the size of each dimension of the array object.

See also