ISurrogateSelector ISurrogateSelector ISurrogateSelector ISurrogateSelector Interface

定义

指示序列化代理项选择器类。Indicates a serialization surrogate selector class.

public interface class ISurrogateSelector
[System.Runtime.InteropServices.ComVisible(true)]
public interface ISurrogateSelector
type ISurrogateSelector = interface
Public Interface ISurrogateSelector
派生
属性

注解

代理项选择器ISurrogateSelector实现接口以帮助格式化程序选择要委托给其他对象的序列化或反序列化的代理项。Surrogate selectors implement the ISurrogateSelector interface to assist formatters in selecting surrogates to delegate to the serialization or deserialization of other objects.

方法

ChainSelector(ISurrogateSelector) ChainSelector(ISurrogateSelector) ChainSelector(ISurrogateSelector) ChainSelector(ISurrogateSelector)

指定代理项的下一个 ISurrogateSelector,以检查当前实例在指定上下文中是否不具有指定类型和程序集的代理项。Specifies the next ISurrogateSelector for surrogates to examine if the current instance does not have a surrogate for the specified type and assembly in the specified context.

GetNextSelector() GetNextSelector() GetNextSelector() GetNextSelector()

返回链中的下一个代理项选择器。Returns the next surrogate selector in the chain.

GetSurrogate(Type, StreamingContext, ISurrogateSelector) GetSurrogate(Type, StreamingContext, ISurrogateSelector) GetSurrogate(Type, StreamingContext, ISurrogateSelector) GetSurrogate(Type, StreamingContext, ISurrogateSelector)

从指定序列化上下文的指定代理项选择器开始,查找表示指定对象类型的代理项。Finds the surrogate that represents the specified object's type, starting with the specified surrogate selector for the specified serialization context.

适用于