IObjectReference Antarmuka

Definisi

Perhatian

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

Menunjukkan bahwa pelaksana antarmuka saat ini adalah referensi ke objek lain.

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
Turunan
Atribut

Catatan Bagi Implementer

Terapkan antarmuka ini pada objek yang merupakan referensi ke objek yang berbeda, yang tidak dapat diselesaikan hingga objek saat ini benar-benar dipulihkan. Selama tahap perbaikan, setiap penerapan IObjectReference objek dikueri untuk objek aslinya dan objek tersebut dimasukkan ke dalam grafik. Perbaikan mengacu pada proses menyelesaikan referensi yang belum selesai selama proses deserialisasi objek.

Metode

GetRealObject(StreamingContext)
Kedaluwarsa.

Mengembalikan objek nyata yang harus dideserialisasi, bukan objek yang ditentukan aliran serial.

Berlaku untuk