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
pDO
Type: Microsoft.VisualStudio.OLE.Interop.IDataObject[in] Pointer to a data object identifying the selected item. This value can be nulla null reference (Nothing in Visual Basic).
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.