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
[C#]
protected virtual object GetNext(
   out long objID
);
[C++]
protected: virtual Object* GetNext(
   [
   Out
] __int64* objID
);
[JScript]
protected function GetNext(
   objID : long
) : Object;

Parameters

objID
The ID assigned to the current object during serialization.

Return Value

The next object to serialize.

Exceptions

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

Requirements

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

Show:
© 2015 Microsoft