IVsTaskList.EnumTaskItems Method

Enumerates all of the tasks on the task list.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'宣言
Function EnumTaskItems ( _
    <OutAttribute> ByRef ppenum As IVsEnumTaskItems _
) As Integer
'使用
Dim instance As IVsTaskList
Dim ppenum As IVsEnumTaskItems
Dim returnValue As Integer

returnValue = instance.EnumTaskItems(ppenum)
int EnumTaskItems(
    out IVsEnumTaskItems ppenum
)
int EnumTaskItems(
    [OutAttribute] IVsEnumTaskItems^% ppenum
)
function EnumTaskItems(
    ppenum : IVsEnumTaskItems
) : 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 IVsTaskList::EnumTaskItems(
   [out] IVsEnumTaskItems **ppEnum
);

You can use this method to scan through all of the tasks on the task list, via the IVsEnumTaskItems interface that is returned.

For a detailed list of the tasks associated with a specific task provider, see EnumTaskItems.

Permissions

See Also

Reference

IVsTaskList Interface

IVsTaskList Members

Microsoft.VisualStudio.Shell.Interop Namespace