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 |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for