Compartilhar via


IVsToolbox2.GetData(IDataObject) Method

Definition

Returns the data object for the selected item in the Toolbox.

public:
 int GetData([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IDataObject ^ % ppDO);
public:
 int GetData([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IDataObject ^ &  ppDO);
int GetData([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IDataObject const & & ppDO);
public int GetData (out Microsoft.VisualStudio.OLE.Interop.IDataObject ppDO);
abstract member GetData : IDataObject -> int
Public Function GetData (ByRef ppDO As IDataObject) As Integer

Parameters

ppDO
IDataObject

[out, retval] Toolbox item for which data needs to be returned.

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolbox2::GetData(  
   [out, retval]IDataObject** ppDO  
);  

IVsToolbox2.GetData returns null if the common pointer tool is the selected item or if the current item is not an enabled item.

Applies to