Formatter.Schedule(Object) Formatter.Schedule(Object) Formatter.Schedule(Object) Formatter.Schedule(Object) Method

定义

安排对象在稍后进行序列化。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

参数

obj
Object Object Object Object

要安排序列化的对象。The object to schedule for serialization.

返回

要分配给对象的对象 ID。The object ID assigned to the object.

注解

Schedule获取对象的 ID,并将其放在队列中,以便以后序列化(如果这是新的对象 ID)。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.

适用于

另请参阅