OleDataObject.IDataObject.QueryGetData Method

Determines whether the data object supports a particular FORMATETC structure for transferring data.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaration
Private Function QueryGetData ( _
    pFormatetc As FORMATETC() _
) As Integer Implements IDataObject.QueryGetData
int IDataObject.QueryGetData(
    FORMATETC[] pFormatetc
)
private:
virtual int QueryGetData(
    array<FORMATETC>^ pFormatetc
) sealed = IDataObject::QueryGetData
private abstract QueryGetData : 
        pFormatetc:FORMATETC[] -> int  
private override QueryGetData : 
        pFormatetc:FORMATETC[] -> int
JScript does not support explicit interface implementations.

Parameters

  • pFormatetc
    Type: array<Microsoft.VisualStudio.OLE.Interop.FORMATETC[]

    Pointer to the FORMATETC structure that defines the format, medium, and target device to use when passing the data. Only one medium can be specified in the tymed member of the FORMATETC structure. These values are valid:

    TYMED_STORAGE

    TYMED_STREAM

    TYMED_HGLOBAL

    TYMED_FILE

Return Value

Type: System.Int32
If the method succeeded, S_OK, otherwise an error code.

Implements

IDataObject.QueryGetData(array<FORMATETC[])

.NET Framework Security

See Also

Reference

OleDataObject Class

Microsoft.VisualStudio.Shell Namespace