ISurrogateSelector 接口 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Formatter-based serialization is obsolete and should not be used.
指示序列化代理项选择器类。
public interface class ISurrogateSelectorpublic 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 ISurrogateSelectortype 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 = interfacePublic Interface ISurrogateSelector- 派生
- 属性
注解
代理项选择器实现 接口, ISurrogateSelector 以帮助格式化程序选择要委托给其他对象的序列化或反序列化的代理项。
方法
| ChainSelector(ISurrogateSelector) | 
				已过时.
			 指定代理项的下一个 ISurrogateSelector,以检查当前实例在指定上下文中是否不具有指定类型和程序集的代理项。 | 
| GetNextSelector() | 
				已过时.
			 返回链中的下一个代理项选择器。 | 
| GetSurrogate(Type, StreamingContext, ISurrogateSelector) | 
				已过时.
			 从指定序列化上下文的指定代理项选择器开始,查找表示指定对象类型的代理项。 |