ISerializationSurrogate 接口

定义

注意

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

实现序列化代理项选择器,此选择器允许一个对象对另一个对象执行序列化和反序列化。

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
属性

方法

GetObjectData(Object, SerializationInfo, StreamingContext)
已过时.

使用序列化对象所需的数据填充所提供的 SerializationInfo

SetObjectData(Object, SerializationInfo, StreamingContext, ISurrogateSelector)
已过时.

使用 SerializationInfo 中的信息填充对象。

适用于