IObjectReference 接口

定义

指示当前接口实现者是对另一个对象的引用。

public interface class IObjectReference
public interface IObjectReference
[System.Runtime.InteropServices.ComVisible(true)]
public interface IObjectReference
type IObjectReference = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
type IObjectReference = interface
Public Interface IObjectReference
派生
属性

实施者说明

对引用其他对象的对象实现此接口,该对象在完全还原当前对象之前无法解析。 在修复阶段,将查询实现的任何对象 IObjectReference ,以获取其真实对象,并将该对象插入到图形中。 修复是指在对象反序列化过程中尚未完成的终结引用的过程。

方法

名称 说明
GetRealObject(StreamingContext)

返回应反序列化的实际对象,而不是序列化流指定的对象。

适用于