IObjectReference Interfaccia

Definizione

Attenzione

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

Indica che l'implementatore dell'interfaccia corrente è un riferimento a un altro oggetto.

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

Note per gli implementatori

Implementare questa interfaccia su oggetti che fanno riferimento a un oggetto diverso, che non può essere risolto fino a quando l'oggetto corrente non viene completamente ripristinato. Durante la fase di correzione, viene eseguita una query su qualsiasi oggetto che implementa IObjectReference il relativo oggetto reale e tale oggetto viene inserito nel grafico. Fixup si riferisce al processo di finalizzazione dei riferimenti non già completati durante il processo di deserializzazione dell'oggetto.

Metodi

Nome Descrizione
GetRealObject(StreamingContext)
Obsoleti.

Restituisce l'oggetto reale che deve essere deserializzato, anziché l'oggetto specificato dal flusso serializzato.

Si applica a