Formatter.GetNext Method (Int64)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

Protected Overridable Function GetNext (
	<OutAttribute> ByRef objID As Long
) As Object


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