Condividi tramite


COleVariant::Detach

Detaches the underlying VARIANT object from this COleVariant object.

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.

Nota

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

Reference

COleVariant Class

Hierarchy Chart

COleVariant::operator LPCVARIANT

COleVariant::operator LPVARIANT

Other Resources

COleVariant Members