共用方式為


IVsTaskProvider.EnumTaskItems(IVsEnumTaskItems) Method

Definition

Standard enumerator over tasks supplied by this provider.

public:
 int EnumTaskItems([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsEnumTaskItems ^ % ppenum);
public:
 int EnumTaskItems([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsEnumTaskItems ^ &  ppenum);
int EnumTaskItems([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsEnumTaskItems const & & ppenum);
public int EnumTaskItems (out Microsoft.VisualStudio.Shell.Interop.IVsEnumTaskItems ppenum);
abstract member EnumTaskItems : IVsEnumTaskItems -> int
Public Function EnumTaskItems (ByRef ppenum As IVsEnumTaskItems) As Integer

Parameters

ppenum
IVsEnumTaskItems

[out] Pointer to the IVsEnumTaskItems interface.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTaskProvider::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.

Applies to