Freigeben über


IVsToolbox.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
'Usage
Dim instance As IVsToolbox
Dim pDO As IDataObject
Dim returnValue As Integer

returnValue = instance.SelectItem(pDO)
int SelectItem(
    IDataObject pDO
)
int SelectItem(
    [InAttribute] IDataObject^ pDO
)
abstract SelectItem : 
        pDO:IDataObject -> int 
function SelectItem(
    pDO : IDataObject
) : int

Parameters

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolbox::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

IVsToolbox Interface

IVsToolbox Members

Microsoft.VisualStudio.Shell.Interop Namespace