SurrogateSelector 类

定义

注意

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

帮助格式化程序选择要将序列化或反序列化进程委托给的序列化代理项。

public ref class SurrogateSelector : System::Runtime::Serialization::ISurrogateSelector
public class SurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public class SurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
[System.Runtime.InteropServices.ComVisible(true)]
public class SurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
type SurrogateSelector = class
    interface ISurrogateSelector
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type SurrogateSelector = class
    interface ISurrogateSelector
[<System.Runtime.InteropServices.ComVisible(true)>]
type SurrogateSelector = class
    interface ISurrogateSelector
Public Class SurrogateSelector
Implements ISurrogateSelector
继承
SurrogateSelector
派生
属性
实现

注解

序列化代理为用户提供一个对象,该对象可以处理不同对象的序列化要求,并在必要时转换序列化的数据。

构造函数

SurrogateSelector()
已过时.

初始化 SurrogateSelector 类的新实例。

方法

AddSurrogate(Type, StreamingContext, ISerializationSurrogate)
已过时.

将代理项添加到已检查代理项的列表中。

ChainSelector(ISurrogateSelector)
已过时.

在代理项列表中添加指定的 ISurrogateSelector,它可以处理特定的对象类型。

Equals(Object)
已过时.

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()
已过时.

作为默认哈希函数。

(继承自 Object)
GetNextSelector()
已过时.

返回选择器链上的下一个选择器。

GetSurrogate(Type, StreamingContext, ISurrogateSelector)
已过时.

返回特定类型的代理项。

GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()
已过时.

创建当前 Object 的浅表副本。

(继承自 Object)
RemoveSurrogate(Type, StreamingContext)
已过时.

移除与给定类型关联的代理项。

ToString()
已过时.

返回表示当前对象的字符串。

(继承自 Object)

适用于