Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Detaches the VARIANT data from the COleSafeArray object.
VARIANT Detach( );
Return Value
The underlying VARIANT value in the COleSafeArray object.
Remarks
The function detaches the data in a safe array by setting the VARTYPE of the object to VT_EMPTY. It is the caller's responsibility to free the array by calling the Windows function VariantClear.
On error, the function throws a COleException.
Example
See the example for COleSafeArray::PutElement.
Requirements
Header: afxdisp.h