Comparteix a través de


ISerializationSurrogate Interfaz

Definición

Precaución

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

Implementa un selector de suplentes de serialización que permite que un objeto realice la serialización y deserialización de otro objeto.

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

Métodos

GetObjectData(Object, SerializationInfo, StreamingContext)
Obsoletos.

Llena el objeto SerializationInfo proporcionado con los datos necesarios para serializar el objeto.

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

Llena el objeto con la información de SerializationInfo.

Se aplica a