IVsExpansionEnumeration.Next(UInt32, IntPtr[], UInt32) Method

Definition

Returns the specified number of objects from the enumeration.

public:
 int Next(System::UInt32 celt, cli::array <IntPtr> ^ rgelt, [Runtime::InteropServices::Out] System::UInt32 % pceltFetched);
public int Next (uint celt, IntPtr[] rgelt, out uint pceltFetched);
abstract member Next : uint32 * nativeint[] * uint32 -> int
Public Function Next (celt As UInteger, rgelt As IntPtr(), ByRef pceltFetched As UInteger) As Integer

Parameters

celt
UInt32

[in] The number of VsExpansion objects to retrieve.

rgelt

IntPtr[]

nativeint[]

[out] An array that is filled in with the requested VsExpansion objects.

pceltFetched
UInt32

[out] The actual number of objects retrieved.

Returns

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

Remarks

The rgelt parameter points to an array of VsExpansion objects to be filled in by this method. In managed code, memory must be allocated to hold the requested number of objects and marshaled to an IntPtr which is passed as the rgelt parameter. Upon returning, each element of the array must be marshaled back into a VsExpansion object. See the Example in the IVsExpansionEnumeration interface topic to see how this is done.

COM Signature

From textmgr2.idl:

HRESULT IVsExpansionEnumeration::Next(  
   ULONG celt,  
   [out, size_is(celt), length_is(*pceltFetched)] VsExpansion **rgelt,  
   [out]ULONG *pceltFetched  
);  

Applies to