This documentation is archived and is not being maintained.

Formatter.GetNext Method

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

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

protected virtual Object GetNext(
	out long objID
)

Parameters

objID
Type: System.Int64%
The ID assigned to the current object during serialization.

Return Value

Type: System.Object
The next object to serialize.

ExceptionCondition
SerializationException

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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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