共用方式為


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)
已淘汰.

傳回應該還原序列化的實際物件,而不是序列化資料流指定的物件。

適用於