Formatter.GetNext(Int64) Method

Definition

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

protected virtual object? GetNext (out long objID);
protected virtual object GetNext (out long objID);

Parameters

objID
Int64

The ID assigned to the current object during serialization.

Returns

The next object to serialize.

Exceptions

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

Remarks

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.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also