BinaryFormatter.SurrogateSelector Property

Definition

获取或设置控制序列化和反序列化过程的类型替换的 ISurrogateSelector.Gets or sets a ISurrogateSelector that controls type substitution during serialization and deserialization.

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; }
member this.SurrogateSelector : System.Runtime.Serialization.ISurrogateSelector with get, set
Public Property SurrogateSelector As ISurrogateSelector

Property Value

ISurrogateSelector

要与此格式化程序一起使用的代理项选择器。The surrogate selector to use with this formatter.

Implements

Remarks

System.Runtime.Remoting 使用代理项选择器为从 MarshalByRefObject派生的对象生成 ObjRef 实例。The surrogate selector is used by System.Runtime.Remoting to generate ObjRef instances for objects that derive from MarshalByRefObject.

Applies to

See also