IVsEnumBSTR.Next(UInt32, String[], UInt32) Method

Definition

Retrieves BSTRs from the enumeration sequence.

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

Parameters

celt
UInt32

[in] The requested number of BSTRs to retrieve.

rgelt
String[]

[out, size_is(celt)] The list of BSTRs that have been retrieved.

pceltFetched
UInt32

[out] Pointer to the actual number of hidden regions supplied in pceltFetched. The caller of this method can set this to null if celt is one.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

[C++]

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

Applies to