COleVariant::Detach

VARIANT Detach( );

Return Type

The underlying VARIANT value of this COleVariant object.

Remarks

Call this function to detach the underlying VARIANT object from this COleVariant object. 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 Win32 SDK OLE Programmer’s Reference.

COleVariant OverviewClass MembersHierarchy Chart

See Also   COleVariant::operator LPCVARIANT, COleVariant::operator LPVARIANT