Compartir a través de


IVsToolboxDataProvider.IsDataSupported(FORMATETC[], STGMEDIUM[]) Method

Definition

Determines the appropriate clipboard data format for a data object .

public:
 int IsDataSupported(cli::array <Microsoft::VisualStudio::OLE::Interop::FORMATETC> ^ pfetc, cli::array <Microsoft::VisualStudio::OLE::Interop::STGMEDIUM> ^ pstm);
int IsDataSupported(std::Array <Microsoft::VisualStudio::OLE::Interop::FORMATETC> const & pfetc, std::Array <Microsoft::VisualStudio::OLE::Interop::STGMEDIUM> const & pstm);
public int IsDataSupported (Microsoft.VisualStudio.OLE.Interop.FORMATETC[] pfetc, Microsoft.VisualStudio.OLE.Interop.STGMEDIUM[] pstm);
abstract member IsDataSupported : Microsoft.VisualStudio.OLE.Interop.FORMATETC[] * Microsoft.VisualStudio.OLE.Interop.STGMEDIUM[] -> int
Public Function IsDataSupported (pfetc As FORMATETC(), pstm As STGMEDIUM()) As Integer

Parameters

pfetc
FORMATETC[]

[in] Generalized clipboard format. For more information, see the FORMATETC structure in the MSDN Library.

pstm
STGMEDIUM[]

[in] Generalized global memory handle used for data transfer operations by IDataObject. For more information, see STGMEDIUM in the MSDN Library.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolboxDataProvider::IsDataSupported(  
   [in]FORMATETC* pfetc,  
   [in]STGMEDIUM* pstm  
);  

Applies to