Share via


CComSafeArray::GetCount

Returns the number of elements in the array.

ULONG GetCount(
   UINT uDim = 0 
) const;

Parameters

  • uDim
    The array dimension.

Return Value

Returns the number of elements in the array.

Remarks

When used with a multidimensional array, this method will return the number of elements in a specific dimension only.

Requirements

Header: atlsafe.h

See Also

Reference

CComSafeArray Class

CComSafeArray::GetLowerBound

CComSafeArray::GetUpperBound

CComSafeArray::GetDimensions

Other Resources

CComSafeArray Members