Share via


IDebugArrayObject::GetDimensions

Note

This article applies to Visual Studio 2015. 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 dimensions of the array.

Syntax

HRESULT GetDimensions(   
   DWORD dwCount,  
   DWORD dwDimensions[]  
);  
int GetDimensions(  
   [In] uint    dwCount,   
   [Out] uint[] dwDimensions  
);  

Parameters

dwCount
[in] The number of dimensions to retrieve.

dwDimensions
[in, out] An array that is filled in with the sizes of each dimension. dwCount specifies the maximum size of the dwDimensions array.

Return Value

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

Remarks

A multi-dimensional array can have different sizes for each dimension. For example, given the three-dimensional array myarray[3][2][6], this method would return 3, 2, and 6 in the dwDimensions parameter in that order.

See Also

IDebugArrayObject