IFormatter.SurrogateSelector 属性

定义

获取或设置当前格式化程序所使用的 SurrogateSelector

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

属性值

ISurrogateSelector

当前格式化程序所使用的 SurrogateSelector

注解

A ISerializationSurrogate 允许用户指定最适合处理特定对象或对象的类的序列化的对象。 将其视为 ISerializable 实现,但由其他对象提供。

适用于