ISurrogateSelector Gränssnitt

Definition

Varning

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

Anger en serialiserings surrogatväljarklass.

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
Härledda
Attribut

Kommentarer

Surrogatväljare implementerar ISurrogateSelector gränssnittet för att hjälpa formatörer att välja surrogater att delegera till serialisering eller deserialisering av andra objekt.

Metoder

Name Description
ChainSelector(ISurrogateSelector)
Föråldrad.

Anger nästa ISurrogateSelector för surrogater att undersöka om den aktuella instansen inte har någon surrogat för den angivna typen och sammansättningen i den angivna kontexten.

GetNextSelector()
Föråldrad.

Returnerar nästa surrogatväljare i kedjan.

GetSurrogate(Type, StreamingContext, ISurrogateSelector)
Föråldrad.

Söker efter surrogaten som representerar det angivna objektets typ, från och med den angivna surrogatväljaren för den angivna serialiseringskontexten.

Gäller för