Condividi tramite


CComSafeArray::operator =

Assignment operator.

ATL::CComSafeArray< T > & operator =(
   const ATL::CComSafeArray & saSrc 
);
ATL::CComSafeArray< T > & operator =(
   const SAFEARRAY * psaSrc 
);

Parameters

  • saSrc
    A reference to a CComSafeArray object.

  • psaSrc
    A pointer to a SAFEARRAY object.

Return Value

Returns the type of data stored in the array.

Smart Device Developer Notes

CComSafeArray<T>& operator=(const SAFEARRAY *psaSrc) is supported for only VT_BSTR, VT_VARIANT, VT_UNKNOWN, and VT_DISPATCH VARTYPEs.

Requirements

Header: atlsafe.h

See Also

Concepts

CComSafeArray Class

CComSafeArray Members