IVsToolbox.SelectItem Method
Programmatically selects an item.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
‘선언
Function SelectItem ( _
pDO As IDataObject _
) As Integer
‘사용 방법
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
- 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: 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
- 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.