ISurrogateSelector 介面

定義

警告

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

指示序列化 (Serialization) 代理選取器類別。

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
衍生
屬性

備註

Surrogate 選取器會實作 ISurrogateSelector 介面,以協助格式化器選取代理程式,以委派給其他物件的序列化或還原序列化。

方法

ChainSelector(ISurrogateSelector)
已淘汰.

指定代理的下一個 ISurrogateSelector 來檢查目前的執行個體 (Instance) 是否在指定內容中不具有指定型別和組件的代理。

GetNextSelector()
已淘汰.

傳回鏈結中的下一個代理選取器。

GetSurrogate(Type, StreamingContext, ISurrogateSelector)
已淘汰.

搜尋表示指定物件型別的代理,從指定序列化內容的指定代理選取器開始。

適用於