SurrogateSelector Klasa

Definicja

Przestroga

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

Pomaga formaterom w wyborze zastępczej serializacji, aby delegować proces serializacji lub deserializacji do.

public ref class SurrogateSelector : System::Runtime::Serialization::ISurrogateSelector
public class SurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public class SurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
[System.Runtime.InteropServices.ComVisible(true)]
public class SurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
type SurrogateSelector = class
    interface ISurrogateSelector
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type SurrogateSelector = class
    interface ISurrogateSelector
[<System.Runtime.InteropServices.ComVisible(true)>]
type SurrogateSelector = class
    interface ISurrogateSelector
Public Class SurrogateSelector
Implements ISurrogateSelector
Dziedziczenie
SurrogateSelector
Pochodne
Atrybuty
Implementuje

Uwagi

Zastępca serializacji daje użytkownikom obiekt, który może obsługiwać wymagania serializacji innego obiektu i w razie potrzeby przekształcić serializowane dane.

Konstruktory

SurrogateSelector()
Przestarzałe.

Inicjuje nowe wystąpienie klasy SurrogateSelector.

Metody

AddSurrogate(Type, StreamingContext, ISerializationSurrogate)
Przestarzałe.

Dodaje zastępcę do listy zaznaczonych zastępców.

ChainSelector(ISurrogateSelector)
Przestarzałe.

Dodaje określony ISurrogateSelector typ obiektu, który może obsługiwać określony typ obiektu na liście zastępców.

Equals(Object)
Przestarzałe.

Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.

(Odziedziczone po Object)
GetHashCode()
Przestarzałe.

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetNextSelector()
Przestarzałe.

Zwraca następny selektor w łańcuchu selektorów.

GetSurrogate(Type, StreamingContext, ISurrogateSelector)
Przestarzałe.

Zwraca zastępcę określonego typu.

GetType()
Przestarzałe.

Type Pobiera bieżące wystąpienie.

(Odziedziczone po Object)
MemberwiseClone()
Przestarzałe.

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
RemoveSurrogate(Type, StreamingContext)
Przestarzałe.

Usuwa zastępcę skojarzonego z danym typem.

ToString()
Przestarzałe.

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)

Dotyczy