Compartilhar via


CComVariant::Detach

Detaches the underlying VARIANT from the CComVariant object and sets the object's type to VT_EMPTY.

HRESULT Detach( 
   VARIANT* pDest  
);

Parameters

  • pDest
    [out] Returns the underlying VARIANT value of the object.

Return Value

A standard HRESULT value.

Remarks

Note that the contents of the VARIANT referenced by pDest will automatically be cleared before being assigned the value and type of the calling CComVariant object.

Requirements

Header: atlcomcli.h

See Also

Reference

CComVariant Class

CComVariant::Attach