Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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 IVsToolbox2
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.
Implements
IVsToolbox.SelectItem(IDataObject)
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.