IDataObject.QueryGetData Method (FORMATETC)
Determines whether the data object is capable of rendering the data described in the FORMATETC structure. Objects attempting a paste or drop operation can call this method before calling GetData to get an indication of whether the operation may be successful.
Assembly: System (in System.dll)
Return ValueType: System.Int32
This method supports the standard return values E_INVALIDARG, E_UNEXPECTED, and E_OUTOFMEMORY, as well as the following:
A subsequent call to GetData would probably be successful.
An invalid value for lindex; currently, only -1 is supported.
An invalid value for the pFormatetc parameter.
An invalid tymed value.
An invalid dwAspect value.
The application is not running.
For more information about IDataObject::QueryGetData, see the MSDN Library.
Available since 2.0