Removes one or more data formats from the IHTML::DataTransfer object.
Syntax
HRESULT clearData( BSTR format, VARIANT_BOOL *pret );
Parameters
- format
- String (BSTR) that specifies the data format to remove from the system clipboard using the IHTML::DataTransfer object. For more information, see the DHTML clearData method.
- pret
- Address of a VARIANT Boolean structure that returns VARIANT_TRUE or VARIANT_FALSE based on success or failure of the call to clearData.
Return Value
Returns S_OK if successful, or an error code otherwise.