ISerializationSurrogate Interfaz

Definición

Precaución

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

Implementa un selector suplente de serialización que permite a un objeto realizar la serialización y deserialización de otra.

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
Atributos

Métodos

Nombre Description
GetObjectData(Object, SerializationInfo, StreamingContext)
Obsoletos.

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

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

Rellena el objeto mediante la información de SerializationInfo.

Se aplica a