Formatter.Schedule(Object) Method

Definition

Schedules an object for later serialization.

protected:
 virtual long Schedule(System::Object ^ obj);
protected virtual long Schedule (object obj);
abstract member Schedule : obj -> int64
override this.Schedule : obj -> int64
Protected Overridable Function Schedule (obj As Object) As Long

Parameters

obj
Object

The object to schedule for serialization.

Returns

Int64

The object ID assigned to the object.

Remarks

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.

Applies to

See also