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 物件都會被查詢其真實物件,並將該物件插入圖中。 修正是指在物件反序列化過程中尚未完成的參考最終完成的過程。

方法

名稱 Description
GetRealObject(StreamingContext)

回傳應該反序列化的真實物件,而非序列化串流指定的物件。

適用於