Formatter.GetNext Method (Int64)


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


Type: System.Int64

The ID assigned to the current object during serialization.

Return Value

Type: System.Object

The next object to serialize.

Exception Condition

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
Available since 1.1
Return to top