Next Method
Collapse the table of content
Expand the table of content

UCOMIEnumConnections.Next Method

Retrieves a specified number of items in the enumeration sequence.

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)

int Next (
	int celt,
	[OutAttribute] CONNECTDATA[] rgelt,
	out int pceltFetched
int Next (
	int celt, 
	/** @attribute OutAttribute() */ CONNECTDATA[] rgelt, 
	/** @attribute OutAttribute() */ /** @ref */ int pceltFetched
JScript does not support passing value-type arguments by reference.



The number of CONNECTDATA structures to return in rgelt.


On successful return, a reference to the enumerated connections.


On successful return, a reference to the actual number of connections enumerated in rgelt.

Return Value

S_OK if the pceltFetched parameter equals the celt parameter; otherwise, S_FALSE.

For more information about IEnumConnections::Next, see the MSDN Library.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

© 2016 Microsoft