IVsToolbox::SelectItem Method (IDataObject^)

 

Programmatically selects an item.

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

int SelectItem(
	IDataObject^ pDO
)

Parameters

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

[in] Pointer to a data object identifying the selected item. This value can be null.

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

If the pDO parameter is null, then the common pointer tool is selected.

Return to top
Show: