_variant_t::Attach
Microsoft Specific
Attaches a VARIANT
object into the _variant_t object.
Syntax
void Attach(VARIANT& varSrc);
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.
END Microsoft Specific
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for