Formatter.Schedule 方法

安排对象在稍后进行序列化。

此方法不符合 CLS。 

**命名空间:**System.Runtime.Serialization
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
Protected Overridable Function Schedule ( _
    obj As Object _
) As Long
用法
Dim obj As Object
Dim returnValue As Long

returnValue = Me.Schedule(obj)
protected virtual long Schedule (
    Object obj
)
protected:
virtual long long Schedule (
    Object^ obj
)
protected long Schedule (
    Object obj
)
protected function Schedule (
    obj : Object
) : long

参数

  • obj
    要安排序列化的对象。

返回值

要分配给对象的对象 ID。

备注

Schedule 获取对象的 ID,并且对于新对象,它会将对象 ID 放入队列,以便在稍后进行序列化。计划是要序列化的对象的工作队列,它包含在格式化程序中。如果对象已经在工作队列中,则不会将其再次添加,但也不会引发异常。

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

Formatter 类
Formatter 成员
System.Runtime.Serialization 命名空间
ObjectIDGenerator