IVsToolbox::GetData Method (IDataObject^)

 

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

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

int GetData(
	[OutAttribute] IDataObject^% ppDO
)

Parameters

ppDO
Type: Microsoft.VisualStudio.OLE.Interop::IDataObject^

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

Return Value

Type: System::Int32

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

Return to top
Show: