ISurrogateSelector Interfejs

Definicja

Przestroga

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

Wskazuje serializacji klasy selektora zastępczego.

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

Uwagi

Selektory zastępcze implementują ISurrogateSelector interfejs, aby pomóc formatatorom w wybieraniu zastępców w celu delegowania do serializacji lub deserializacji innych obiektów.

Metody

ChainSelector(ISurrogateSelector)
Przestarzałe.

Określa następny ISurrogateSelector dla zastępców do sprawdzenia, czy bieżące wystąpienie nie ma zastępcy dla określonego typu i zestawu w określonym kontekście.

GetNextSelector()
Przestarzałe.

Zwraca następny selektor zastępczy w łańcuchu.

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

Znajduje surogat, który reprezentuje typ określonego obiektu, począwszy od określonego selektora zastępczego dla określonego kontekstu serializacji.

Dotyczy