次の方法で共有


IVsTaskProvider2.EnumTaskItems Method

Enumerates the tasks supplied by the task provider.

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 IVsTaskProvider2
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.

Implements

IVsTaskProvider.EnumTaskItems(IVsEnumTaskItems%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTaskProvider2::EnumTaskItems(
   [out] IVsEnumTaskItems **ppEnum
);

The task list uses this method to scan through all of the tasks of this task provider, via the IVsEnumTaskItems interface that is returned.

This method enumerates only the tasks provided by this task provider. All of the tasks in the task list are enumerated through the EnumTaskItems.

Permissions

See Also

Reference

IVsTaskProvider2 Interface

IVsTaskProvider2 Members

Microsoft.VisualStudio.Shell.Interop Namespace