Compartir a través de


_variant_t::Attach

Microsoft Specific

void Attach( VARIANT& varSrc ) throw( _com_error );

Parameters

varSrc

a VARIANT object to be attached to this _variant_t object

Remarks

Takes ownership of the VARIANT by encapsulating it. This member function releases any existing encapsulated VARIANT, then copies the supplied VARIANT, and sets its VARTYPE to VT_EMPTY to make sure its resources can only be released by the _variant_t destructor.

_variant_t Overview

END Microsoft Specific