Partager via


ClipboardObject.IDataObject.QueryGetData(FORMATETC) Method

Definition

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 IDataObject.GetData(FORMATETC, STGMEDIUM) to get an indication of whether the operation will be successful.

 virtual int System.Runtime.InteropServices.ComTypes.IDataObject.QueryGetData(System::Runtime::InteropServices::ComTypes::FORMATETC % format) = System::Runtime::InteropServices::ComTypes::IDataObject::QueryGetData;
int IDataObject.QueryGetData (ref System.Runtime.InteropServices.ComTypes.FORMATETC format);
override this.System.Runtime.InteropServices.ComTypes.IDataObject.QueryGetData : FORMATETC -> int
Function QueryGetData (ByRef format As FORMATETC) As Integer Implements IDataObject.QueryGetData

Parameters

format
FORMATETC

A reference to a FORMATETC structure, passed by reference, that defines the format, medium, and target device to use for the query.

Returns

This method supports the standard return values E_INVALIDARG, E_UNEXPECTED, and E_OUTOFMEMORY, as well as the following:ValueDescriptionS_OKA subsequent call to GetData will probably be successful.DV_E_LINDEXThere is an invalid value for lindex; currently, only -1 is supported.DV_E_FORMATETCThere is an invalid value for the format parameter.DV_E_TYMEDThere is an invalid tymed value.DV_E_DVASPECTThere is an invalid dwAspect value.OLE_E_NOTRUNNINGThe application is not running.

Implements

Applies to