Share via


IDebugArrayField::GetNumberOfElements

Gets the number of elements in the array.

HRESULT GetNumberOfElements( 
   DWORD* pdwNumElements
);
int GetNumberOfElements(
   out uint pdwNumElements
);

Parameters

  • pdwNumElements
    [out] Returns the number of elements in the array.

Return Value

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

Remarks

The value returned is the total number of elements in the array, regardless of the number of dimensions.

See Also

Reference

IDebugArrayField