IDebugHostType::GetArrayDimensionality method (dbgmodel.h)
The GetArrayDimensionality method returns the number of dimensions that the array is indexed in. For C style arrays, the value returned here will always be 1.
Syntax
HRESULT GetArrayDimensionality(
ULONG64 *arrayDimensionality
);
Parameters
arrayDimensionality
The number of dimensions that the array is indexed in will be returned here.
Return value
This method returns HRESULT that indicates success or failure.
Remarks
Sample Code
ComPtr<IDebugHostType> spType; /* get a type for some array (see FindTypeByName) */
ULONG64 arrayDims;
if (SUCCEEDED(spType->GetArrayDimensionality(&arrayDims)))
{
// arrayDims is the dimensionality of the array. For C/C++, this is always 1.
}
Requirements
Requirement | Value |
---|---|
Header | dbgmodel.h |