IFormatter.SurrogateSelector 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置 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
属性值
SurrogateSelector此格式化程序使用的。
注解
允许用户 ISerializationSurrogate 指定最适合处理特定对象或对象类的序列化的对象。 将其视为不同对象的实现 ISerializable ,但由另一个对象提供。