IVsExpansionEnumeration::Next Method (UInt32, array<IntPtr>^, UInt32)

 

Returns the specified number of objects from the enumeration.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int Next(
	unsigned int celt,
	array<IntPtr>^ rgelt,
	[OutAttribute] unsigned int% pceltFetched
)

Parameters

celt
Type: System::UInt32

[in] The number of VsExpansion objects to retrieve.

rgelt
Type: array<System::IntPtr>^

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

pceltFetched
Type: System::UInt32

[out] The actual number of objects retrieved.

Return Value

Type: System::Int32

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

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.

From textmgr2.idl:

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