IEnumComponents.Next(UInt32, VSCOMPONENTSELECTORDATA[], UInt32) 方法

定义

检索枚举序列中指定数量的项。

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

参数

celt
UInt32

中请求的组件元素的数目。

rgelt
VSCOMPONENTSELECTORDATA[]

celt 枚举序列中组件的返回大小或更大的数组。

pceltFetched
UInt32

弄一个指针,指向中提供的元素的数目 rgelt 。 如果为1,则调用方可以传入 null celt

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 compsvcspkg:

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

适用于