ISurrogateSelector Interfaccia

Definizione

Attenzione

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

Indica una classe del selettore surrogato di serializzazione.

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

Commenti

I selettori surrogati implementano l'interfaccia ISurrogateSelector per assistere i formattatori nella selezione dei surrogati da delegare alla serializzazione o alla deserializzazione di altri oggetti.

Metodi

Nome Descrizione
ChainSelector(ISurrogateSelector)
Obsoleti.

Specifica il successivo ISurrogateSelector per i surrogati da esaminare se l'istanza corrente non dispone di un surrogato per il tipo e l'assembly specificati nel contesto specificato.

GetNextSelector()
Obsoleti.

Restituisce il selettore surrogato successivo nella catena.

GetSurrogate(Type, StreamingContext, ISurrogateSelector)
Obsoleti.

Trova il surrogato che rappresenta il tipo dell'oggetto specificato, a partire dal selettore surrogato specificato per il contesto di serializzazione specificato.

Si applica a