Compartir a través de


IVsEnumTaskItems.Next Method

Retrieves a specified number of task items in the enumeration sequence.

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

Syntax

'Declaration
Function Next ( _
    celt As UInteger, _
    <OutAttribute> rgelt As IVsTaskItem(), _
    <OutAttribute> pceltFetched As UInteger() _
) As Integer
int Next(
    uint celt,
    IVsTaskItem[] rgelt,
    uint[] pceltFetched
)
int Next(
    [InAttribute] unsigned int celt, 
    [OutAttribute] array<IVsTaskItem^>^ rgelt, 
    [OutAttribute] array<unsigned int>^ pceltFetched
)
abstract Next : 
        celt:uint32 * 
        rgelt:IVsTaskItem[] byref * 
        pceltFetched:uint32[] byref -> int
function Next(
    celt : uint, 
    rgelt : IVsTaskItem[], 
    pceltFetched : uint[]
) : int

Parameters

  • celt
    Type: UInt32

    [in] The requested number of task items to retrieve.

  • pceltFetched
    Type: array<UInt32[]

    [out] Pointer to the actual number of tasks supplied in rgelt. The caller of this method can set this to nulla null reference (Nothing in Visual Basic) if celt is one.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsEnumTaskItems::Next(
   [in] ULONG celt,
   [out, size_is(celt), length_is(*pceltFetched)] IVsTaskItem **rgelt,
   [out, optional] ULONG *pceltFetched
);

The tasks are retrieved from the current position of the enumeration. The Reset and Skip methods of this interface can be used to get to a particular position of the enumeration before using IVsEnumTaskItems.Next to retrieve task items from the enumeration.

Refer to the Remarks under the Reset method.

.NET Framework Security

See Also

Reference

IVsEnumTaskItems Interface

Microsoft.VisualStudio.Shell.Interop Namespace