Delen via


IVsToolbox2.SelectItem Method

Programmatically selects an item.

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

Syntax

'Declaration
Function SelectItem ( _
    pDO As IDataObject _
) As Integer
int SelectItem(
    IDataObject pDO
)
int SelectItem(
    [InAttribute] IDataObject^ pDO
)
abstract SelectItem : 
        pDO:IDataObject -> int
function SelectItem(
    pDO : IDataObject
) : int

Parameters

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolbox2::SelectItem(
   [in]IDataObject* pDO
);

If the pDO parameter is nulla null reference (Nothing in Visual Basic), then the common pointer tool is selected.

.NET Framework Security

See Also

Reference

IVsToolbox2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace