ISurrogateSelector 接口

定义

注意

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

指示序列化代理项选择器类。

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

注解

代理项选择器实现 接口, ISurrogateSelector 以帮助格式化程序选择要委托给其他对象的序列化或反序列化的代理项。

方法

ChainSelector(ISurrogateSelector)
已过时.

指定代理项的下一个 ISurrogateSelector,以检查当前实例在指定上下文中是否不具有指定类型和程序集的代理项。

GetNextSelector()
已过时.

返回链中的下一个代理项选择器。

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

从指定序列化上下文的指定代理项选择器开始,查找表示指定对象类型的代理项。

适用于