Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetNext Method

Formatter.GetNext Method

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

The Formatter type is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
Protected Overridable Function GetNext( _
   <Out()> ByRef objID As Long _
) As Object
protected virtual object GetNext(
   out long objID
protected: virtual Object* GetNext(
] __int64* objID
protected function GetNext(
   objID : long
) : Object;


The ID assigned to the current object during serialization.

Return Value

The next object to serialize.


Exception Type Condition
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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Formatter Class | Formatter Members | System.Runtime.Serialization Namespace | ObjectIDGenerator

© 2015 Microsoft