Partilhar via


ISerializationSurrogate Interface

Definição

Cuidado

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

Implementa um seletor de substitutos de serialização que permite que um objeto realize a serialização e a desserialização de outro.

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)
Obsoleto.

Popula o SerializationInfo fornecido com os dados necessários para serializar o objeto.

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

Popula o objeto usando as informações no SerializationInfo.

Aplica-se a