SurrogateSelector 类

定义

注意

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

帮助格式化程序选择序列化代理以将序列化或反序列化过程委托给。

public ref 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
public class SurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
[System.Runtime.InteropServices.ComVisible(true)]
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}")>]
type SurrogateSelector = class
    interface ISurrogateSelector
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)

适用于