Skip to content

Latest commit

 

History

History
57 lines (49 loc) · 1.15 KB

File metadata and controls

57 lines (49 loc) · 1.15 KB
title _com_ptr_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
_com_ptr_t::Detach
_com_ptr_t.Detach
dev_langs
C++
helpviewer_keywords
Detach method
ms.assetid 0652053e-af37-44e9-a278-2522212ebfed
caps.latest.revision 6
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

_com_ptr_t::Detach

Microsoft Specific

Extracts and returns the encapsulated interface pointer.

Syntax

  
Interface* Detach( ) throw( );  
  

Remarks

Extracts and returns the encapsulated interface pointer, and then clears the encapsulated pointer storage to NULL. This removes the interface pointer from encapsulation. It is up to you to call Release on the returned interface pointer.

END Microsoft Specific

See Also

_com_ptr_t Class