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 實例。

適用於

另請參閱