COleVariant::Detach
VARIANT Detach( );
Return Type
The underlying VARIANT value of this COleVariant object.
Remarks
Call this function to detach the underlying object from this COleVariant object. This function sets the 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 , , and entries in the Win32 SDK OLE Programmer’s Reference.
COleVariant Overview | Class Members | Hierarchy Chart
See Also COleVariant::operator LPCVARIANT, COleVariant::operator LPVARIANT