Formatter.WriteObjectRef 方法
当在派生类中重写时,向已经连接到格式化程序的流中写入一个对象引用。
此方法不符合 CLS。
**命名空间:**System.Runtime.Serialization
**程序集:**mscorlib(在 mscorlib.dll 中)
语法
声明
Protected MustOverride Sub WriteObjectRef ( _
obj As Object, _
name As String, _
memberType As Type _
)
用法
Dim obj As Object
Dim name As String
Dim memberType As Type
Me.WriteObjectRef(obj, name, memberType)
protected abstract void WriteObjectRef (
Object obj,
string name,
Type memberType
)
protected:
virtual void WriteObjectRef (
Object^ obj,
String^ name,
Type^ memberType
) abstract
protected abstract void WriteObjectRef (
Object obj,
String name,
Type memberType
)
protected abstract function WriteObjectRef (
obj : Object,
name : String,
memberType : Type
)
参数
- obj
要写入的对象引用。
- name
成员名。
- memberType
引用指向的对象的类型。
备注
使用图形遍历器安排对象对工作进行处理。
给继承者的说明 必须在派生类中实现此方法。
平台
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