Skip to content

Latest commit

 

History

History
62 lines (53 loc) · 1.42 KB

File metadata and controls

62 lines (53 loc) · 1.42 KB
title _variant_t::Detach | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-language
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
_variant_t::Detach
_variant_t.Detach
dev_langs
C++
helpviewer_keywords
VARIANT object, detatch
Detach method
VARIANT object
ms.assetid c348ac08-62cf-4657-a16f-974a79c12158
caps.latest.revision 7
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

_variant_t::Detach

Microsoft Specific

Detaches the encapsulated VARIANT object from this _variant_t object.

Syntax

  
VARIANT Detach( );  
  

Return Value

The encapsulated VARIANT.

Remarks

Extracts and returns the encapsulated VARIANT, then clears this _variant_t object without destroying it. This member function removes the VARIANT from encapsulation and sets the VARTYPE of this _variant_t object to VT_EMPTY. It is up to you to release the returned VARIANT by calling the VariantClear function.

END Microsoft Specific

See Also

_variant_t Class