Formatter.GetNext Method

Returns the next object to serialize, from the formatter's internal work queue.

This method is not CLS-compliant.  

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

protected virtual Object GetNext (
	out long objID
protected Object GetNext (
	/** @attribute OutAttribute() */ /** @ref */ long objID
JScript does not support passing value-type arguments by reference.



The ID assigned to the current object during serialization.

Return Value

The next object to serialize.

Exception typeCondition


The next object retrieved from the work queue did not have an assigned ID.

Objects are returned in a first in first out order based on how they were passed to Schedule. The ID of the object is put into the objID parameter and the object is returned from the function.

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