System.Runtime.Serialization.Formatter.Schedule Method

Schedules an object for later serialization.

Syntax

protected virtual long Schedule (object obj)

Parameters

obj
The object to schedule for serialization.

Returns

The object ID assigned to the object.

Remarks

Formatter.Schedule(object) 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.

Requirements

Namespace: System.Runtime.Serialization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0