ISerializationSurrogate Interface

Definitie

Let op

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

Implementeert een serialisatie-surrogaatkiezer waarmee één object serialisatie en deserialisatie van een ander object kan uitvoeren.

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

Methoden

Name Description
GetObjectData(Object, SerializationInfo, StreamingContext)
Verouderd.

Hiermee vult u de opgegeven SerializationInfo gegevens in die nodig zijn om het object te serialiseren.

SetObjectData(Object, SerializationInfo, StreamingContext, ISurrogateSelector)
Verouderd.

Hiermee wordt het object gevuld met behulp van de informatie in de SerializationInfo.

Van toepassing op