Formatter.Schedule Method (Object)


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

Schedules an object for later serialization.

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

protected virtual long Schedule(
	object obj


Type: System.Object

The object to schedule for serialization.

Return Value

Type: System.Int64

The object ID assigned to the object.

Schedule obtains an ID for the object and puts it on the queue for later serialization if this is a new object ID. The schedule is a work queue of objects to serialize, and is held inside the formatter. If the object is already on the work queue, it will not be added a second time, but an exception will not be thrown either.

.NET Framework
Available since 1.1
Return to top