Formatter.SurrogateSelector 属性

定义

当在派生类中重写时,获取或设置与当前格式化程序一起使用的 ISurrogateSelector

public:
 abstract property System::Runtime::Serialization::ISurrogateSelector ^ SurrogateSelector { System::Runtime::Serialization::ISurrogateSelector ^ get(); void set(System::Runtime::Serialization::ISurrogateSelector ^ value); };
public abstract System.Runtime.Serialization.ISurrogateSelector? SurrogateSelector { get; set; }
public abstract System.Runtime.Serialization.ISurrogateSelector SurrogateSelector { get; set; }
member this.SurrogateSelector : System.Runtime.Serialization.ISurrogateSelector with get, set
Public MustOverride Property SurrogateSelector As ISurrogateSelector

属性值

与当前格式化程序一起使用的 ISurrogateSelector

实现

注解

SurrogateSelector使用 查找控制特定类型的序列化的 实现ISerializationSurrogate

如果对象类型具有匹配的代理项,则序列化和反序列化将移交给代理项,即使该类型实现了 接口 ISerializable

实施者说明

必须在派生类中实现此属性。

适用于