IVsEnumCodeBlocks.Next Method

Returns the next set of elements from the enumeration.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

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

Parameters

  • celt
    Type: System.UInt32
    [in] The number of elements to retrieve. Also specifies the maximum size of the rgelt array.
  • pceltFetched
    Type: System.UInt32%
    [out] Returns the number of elements actually returned in the rgelt array.

Return Value

Type: System.Int32
If successful, returns S_OK. Returns S_FALSE if fewer than the requested number of elements could be returned. Otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT Next(
   [in] ULONG    celt,
   [out, size_is(celt), length_is(*pceltFetched)] TextSpanAndCookie *rgelt,
   [out] ULONG *pceltFetched
);

.NET Framework Security

See Also

Reference

IVsEnumCodeBlocks Interface

Microsoft.VisualStudio.TextManager.Interop Namespace