IVsToolbox::GetData Method (IDataObject^)
Visual Studio 2015
Returns the data object for the selected item in the Toolbox.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- ppDO
-
Type:
Microsoft.VisualStudio.OLE.Interop::IDataObject^
[out, retval] Toolbox item for which data needs to be returned.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsToolbox::GetData(
[out, retval]IDataObject** ppDO
);
IVsToolbox.GetData returns null if the common pointer tool is the selected item or if the current item is not an enabled item.
Show: