共用方式為


CComSafeArrayBound::SetCount

Call this method to set the number of elements.

ULONG SetCount( 
   ULONG ulCount  
) throw( );

Parameters

  • ulCount
    The number of elements.

Return Value

Returns the number of elements in the CComSafeArrayBound object.

Requirements

Header: atlsafe.h

See Also

Reference

CComSafeArrayBound Class

CComSafeArrayBound::GetCount

CComSafeArrayBound::SetLowerBound