ISurrogateSelector ISurrogateSelector ISurrogateSelector ISurrogateSelector Interface

定義

指示序列化 (Serialization) 代理選取器類別。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,委派給序列化或還原序列化的其他物件的格式器。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 來檢查目前的執行個體 (Instance) 是否在指定內容中不具有指定型別和組件的代理。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.

適用於