Partilhar via


IVsToolboxDataProvider.IsSupported(IDataObject) Method

Definition

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

public:
 int IsSupported(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pDO);
public:
 int IsSupported(Microsoft::VisualStudio::OLE::Interop::IDataObject ^ pDO);
int IsSupported(Microsoft::VisualStudio::OLE::Interop::IDataObject const & pDO);
public int IsSupported (Microsoft.VisualStudio.OLE.Interop.IDataObject pDO);
abstract member IsSupported : Microsoft.VisualStudio.OLE.Interop.IDataObject -> int
Public Function IsSupported (pDO As IDataObject) As Integer

Parameters

pDO
IDataObject

[in] Data object to be added to the Toolbox.

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::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.

Applies to