次の方法で共有


IVsToolboxDataProvider.IsDataSupported Method

Determines the appropriate clipboard data format for a data object .

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

Syntax

'宣言
Function IsDataSupported ( _
    pfetc As FORMATETC(), _
    pstm As STGMEDIUM() _
) As Integer
'使用
Dim instance As IVsToolboxDataProvider
Dim pfetc As FORMATETC()
Dim pstm As STGMEDIUM()
Dim returnValue As Integer

returnValue = instance.IsDataSupported(pfetc, _
    pstm)
int IsDataSupported(
    FORMATETC[] pfetc,
    STGMEDIUM[] pstm
)
int IsDataSupported(
    [InAttribute] array<FORMATETC>^ pfetc, 
    [InAttribute] array<STGMEDIUM>^ pstm
)
function IsDataSupported(
    pfetc : FORMATETC[], 
    pstm : STGMEDIUM[]
) : int

Parameters

  • pfetc
    Type: []

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

  • pstm
    Type: []

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

Return Value

Type: System.Int32

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
);

Permissions

See Also

Reference

IVsToolboxDataProvider Interface

IVsToolboxDataProvider Members

Microsoft.VisualStudio.Shell.Interop Namespace