Share via


IEnumComReferences.Next(UInt32, COMREFERENCE[], UInt32) Method

Definition

Retrieves the next group of COM references.

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

Parameters

celt
UInt32

[in] Number of COM references to return, or zero to indicate a request for all of the objects.

rgRefs
COMREFERENCE[]

[out] An array of COMREFERENCE objects. Contains pceltFetched objects.

pceltFetched
UInt32

[out] Actual number of COM references retrieved.

Returns

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

Remarks

COM Signature

From vsshell.idl:

[C++]

HRESULT IEnumComReferences::Next(  
   [in] ULONG celt,   
   [out, size_is(celt), length_is(*pceltFetched)] PCOMREFERENCE rgRefs,    [out] ULONG *pceltFetched  
);  

Applies to