| description | Learn more about: _variant_t::Attach | |||
|---|---|---|---|---|
| title | _variant_t::Attach | |||
| ms.date | 11/04/2016 | |||
| f1_keywords |
|
|||
| helpviewer_keywords |
|
|||
| ms.assetid | 2f02bd08-2306-4477-aa88-d2a5dee2b859 |
Microsoft Specific
Attaches a VARIANT object into the _variant_t object.
void Attach(VARIANT& varSrc);varSrc
A VARIANT object to be attached to this _variant_t object.
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