ISerializationSurrogate Interface

Définition

Attention

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

Implémente un sélecteur de substitution de sérialisation qui permet à un objet d’effectuer la sérialisation et la désérialisation d’une autre.

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
Attributs

Méthodes

Nom Description
GetObjectData(Object, SerializationInfo, StreamingContext)
Obsolète.

Remplit les données fournies SerializationInfo pour sérialiser l’objet.

SetObjectData(Object, SerializationInfo, StreamingContext, ISurrogateSelector)
Obsolète.

Remplit l’objet à l’aide des informations contenues dans le SerializationInfo.

S’applique à