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.
Selects zero or more items. Pass in zero for nItems to remove the selection entirely. All non-filtered items in pItems will be selected and the last one will become the caret item. Filtered items are ignored.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function SelectItems ( _
nItems As Integer, _
pItems As IVsTaskItem(), _
tsfSelType As UInteger, _
tsspScrollPos As UInteger _
) As Integer
'Usage
Dim instance As IVsTaskList2
Dim nItems As Integer
Dim pItems As IVsTaskItem()
Dim tsfSelType As UInteger
Dim tsspScrollPos As UInteger
Dim returnValue As Integer
returnValue = instance.SelectItems(nItems, _
pItems, tsfSelType, tsspScrollPos)
int SelectItems(
int nItems,
IVsTaskItem[] pItems,
uint tsfSelType,
uint tsspScrollPos
)
int SelectItems(
[InAttribute] int nItems,
[InAttribute] array<IVsTaskItem^>^ pItems,
[InAttribute] unsigned int tsfSelType,
[InAttribute] unsigned int tsspScrollPos
)
abstract SelectItems :
nItems:int *
pItems:IVsTaskItem[] *
tsfSelType:uint32 *
tsspScrollPos:uint32 -> int
function SelectItems(
nItems : int,
pItems : IVsTaskItem[],
tsfSelType : uint,
tsspScrollPos : uint
) : int
Parameters
- nItems
Type: System.Int32
[in] Integer value containing Zero or the number of items selected. Set to zero to remove the selection entirely.
- pItems
Type: array<Microsoft.VisualStudio.Shell.Interop.IVsTaskItem[]
[in] An array of IVsTaskList objects.
- tsfSelType
Type: System.UInt32
[in] An object of __VSTASKLISTSELECTIONTYPE type.
- tsspScrollPos
Type: System.UInt32
[in] An object of __VSTASKLISTSELECTIONSCROLLPOS type.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
In order to handle commands, the task providers will need to know which tasks are currently selected.
All non-filtered items in pItems will be selected and the last one will become the caret item. Filtered items are ignored
COM Signature
From vsshell80.idl:
HRESULT SelectItems(
[in] int nItems,
[in, size_is(nItems)] IVsTaskItem* pItems[],
[in] VSTASKLISTSELECTIONTYPE tsfSelType,
[in] VSTASKLISTSELECTIONSCROLLPOS tsspScrollPos
);
.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.