共用方式為


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 Microsoft.VisualStudio.OLE.Interop.IDataObject.QueryGetData(cli::array <Microsoft::VisualStudio::OLE::Interop::FORMATETC> ^ pFormatetc) = Microsoft::VisualStudio::OLE::Interop::IDataObject::QueryGetData;
int IDataObject.QueryGetData (Microsoft.VisualStudio.OLE.Interop.FORMATETC[] pFormatetc);
abstract member Microsoft.VisualStudio.OLE.Interop.IDataObject.QueryGetData : Microsoft.VisualStudio.OLE.Interop.FORMATETC[] -> int
override this.Microsoft.VisualStudio.OLE.Interop.IDataObject.QueryGetData : Microsoft.VisualStudio.OLE.Interop.FORMATETC[] -> int
Function QueryGetData (pFormatetc As FORMATETC()) As Integer Implements IDataObject.QueryGetData

Parameters

pFormatetc
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 pFormatetc 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