ISerializationSurrogate Interfejs

Definicja

Przestroga

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

Implementuje selektor zastępczy serializacji, który umożliwia jednemu obiektowi wykonywanie serializacji i deserializacji innego.

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
Atrybuty

Metody

GetObjectData(Object, SerializationInfo, StreamingContext)
Przestarzałe.

Wypełnia dostarczone SerializationInfo dane potrzebne do serializacji obiektu.

SetObjectData(Object, SerializationInfo, StreamingContext, ISurrogateSelector)
Przestarzałe.

Wypełnia obiekt przy użyciu informacji w pliku SerializationInfo.

Dotyczy