次の方法で共有


IVsToolboxDataProvider.IsSupported Method

Determines whether or not a data object is supported by a data provider and can be added to the Toolbox.

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

Syntax

'宣言
Function IsSupported ( _
    pDO As IDataObject _
) As Integer
'使用
Dim instance As IVsToolboxDataProvider
Dim pDO As IDataObject
Dim returnValue As Integer

returnValue = instance.IsSupported(pDO)
int IsSupported(
    IDataObject pDO
)
int IsSupported(
    [InAttribute] IDataObject^ pDO
)
function IsSupported(
    pDO : IDataObject
) : int

Parameters

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::IsSupported(
   [in]IDataObject* pDO
);

The environment calls each registered data provider with IVsToolboxUserDataProvider.IsSupported to determine whether any of the data providers support the new data object. If a data provider supports the data object (that is, returns S_OK), then the data object is added to the Toolbox.

Permissions

See Also

Reference

IVsToolboxDataProvider Interface

IVsToolboxDataProvider Members

Microsoft.VisualStudio.Shell.Interop Namespace