Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.16 KB

variant-t-attach.md

File metadata and controls

43 lines (35 loc) · 1.16 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
_variant_t::Attach | Microsoft Docs
11/04/2016
cpp-language
language-reference
_variant_t::Attach
_variant_t.Attach
C++
Attach method [C++]
VARIANT object [C++], attach
VARIANT object
2f02bd08-2306-4477-aa88-d2a5dee2b859
6
mikeblome
mblome
ghogen

_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

_variant_t Class