BinaryFormatter.SurrogateSelector 属性

定义

获取或设置控制序列化和反序列化过程的类型替换的 ISurrogateSelector.

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

属性值

要与此格式化程序一起使用的代理项选择器。

实现

注解

警告

BinaryFormatter 不安全,无法确保安全。 有关详细信息,请参阅 BinaryFormatter 安全指南

代理项选择器用于System.Runtime.Remoting为派生自 MarshalByRefObject的对象生成ObjRef实例。

适用于

另请参阅