COleVariant::Detach

 

Detaches the underlying VARIANT object from this COleVariant object.

Syntax

VARIANT Detach( );

Return Type

The underlying VARIANT value of this COleVariant object.

Remarks

This function sets the VARTYPE for this COleVariant object to VT_EMPTY.

Note

After calling Detach, it is the caller's responsibility to call VariantClear on the resulting VARIANT structure.

For more information, see the VARIANT, VARTYPE, and VariantClear entries in the Windows SDK.

Requirements

Header: afxdisp.h

See Also

COleVariant Class
Hierarchy Chart
COleVariant::operator LPCVARIANT
COleVariant::operator LPVARIANT