다음을 통해 공유


IVsEnumCodeBlocks.Next(UInt32, TextSpanAndCookie[], UInt32) Method

Definition

Returns the next set of elements from the enumeration.

public:
 int Next(System::UInt32 celt, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpanAndCookie> ^ rgelt, [Runtime::InteropServices::Out] System::UInt32 % pceltFetched);
int Next(unsigned int celt, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpanAndCookie> const & rgelt, [Runtime::InteropServices::Out] unsigned int & pceltFetched);
public int Next (uint celt, Microsoft.VisualStudio.TextManager.Interop.TextSpanAndCookie[] rgelt, out uint pceltFetched);
abstract member Next : uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpanAndCookie[] * uint32 -> int
Public Function Next (celt As UInteger, rgelt As TextSpanAndCookie(), ByRef pceltFetched As UInteger) As Integer

Parameters

celt
UInt32

[in] The number of elements to retrieve. Also specifies the maximum size of the rgelt array.

rgelt
TextSpanAndCookie[]

[in, out] An array of TextSpanAndCookie objects to be filled in.

pceltFetched
UInt32

[out] Returns the number of elements actually returned in the rgelt array.

Returns

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  
);  

Applies to