Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 609 Bytes

File metadata and controls

32 lines (21 loc) · 609 Bytes
description Learn more about: _bstr_t::Detach
title _bstr_t::Detach
ms.date 02/02/2021
f1_keywords
_bstr_t::Detach
helpviewer_keywords
Detach method [C++]

_bstr_t::Detach

Microsoft Specific

Returns the BSTR wrapped by a _bstr_t and detaches the BSTR from the _bstr_t.

Syntax

BSTR Detach( ) throw;

Return Value

Returns the BSTR encapsulated by the _bstr_t.

Example

See _bstr_t::Assign for an example that uses Detach.

END Microsoft Specific

See also

_bstr_t class