IObjectReference 接口

定义

注意

Formatter-based serialization is obsolete and should not be used.

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

public interface class IObjectReference
public interface IObjectReference
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public interface IObjectReference
[System.Runtime.InteropServices.ComVisible(true)]
public interface IObjectReference
type IObjectReference = interface
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type IObjectReference = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
type IObjectReference = interface
Public Interface IObjectReference
派生
属性

实施者说明

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

方法

GetRealObject(StreamingContext)
已过时.

返回应进行反序列化的真实对象(而不是序列化流指定的对象)。

适用于