Compartir a través de


IVsEnumCodeBlocks.Next (Método)

Devuelve el conjunto de elementos de la enumeración.

Espacio de nombres:  Microsoft.VisualStudio.TextManager.Interop
Ensamblado:  Microsoft.VisualStudio.TextManager.Interop.8.0 (en Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintaxis

'Declaración
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

Parámetros

  • celt
    Tipo: UInt32

    [in] Número de elementos que se van a recuperar. También especifica el tamaño máximo de la matriz de rgelt .

  • pceltFetched
    Tipo: UInt32%

    [out] Devuelve el número de elementos devueltos realmente en la matriz de rgelt .

Valor devuelto

Tipo: Int32
Si finaliza correctamente, devuelve S_OK.Devuelve S_FALSE si menor que el número solicitado de elementos podrían devolverse.De lo contrario, devuelve un código de error.

Comentarios

Prototipo COM

de singlefileeditor.idl:

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

Seguridad de .NET Framework

Vea también

Referencia

IVsEnumCodeBlocks Interfaz

Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)