IEnumHierarchies.Next Method

Retrieves the next group of hierarchy interfaces (IVsHierarchy).

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


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


  • celt
    Type: System.UInt32
    [in] Number of hierarchies to return, or zero to indicate a request for all of the objects.
  • pceltFetched
    Type: System.UInt32%
    [out] Actual number of hierarchy interfaces retrieved.

Return Value

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


COM Signature

From vsshell.idl:


HRESULT IEnumHierarchies::Next(
   [in] ULONG celt, 
   [out, size_is(celt), length_is(*pceltFetched)] IVsHierarchy **rgelt,    [out] ULONG *pceltFetched

.NET Framework Security

See Also


IEnumHierarchies Interface

Microsoft.VisualStudio.Shell.Interop Namespace