IFormatter.Binder 属性
定义
获取或设置在反序列化过程中执行类型查找的 SerializationBinder。Gets or sets the SerializationBinder that performs type lookups during deserialization.
public:
property System::Runtime::Serialization::SerializationBinder ^ Binder { System::Runtime::Serialization::SerializationBinder ^ get(); void set(System::Runtime::Serialization::SerializationBinder ^ value); };
public System.Runtime.Serialization.SerializationBinder? Binder { get; set; }
public System.Runtime.Serialization.SerializationBinder Binder { get; set; }
member this.Binder : System.Runtime.Serialization.SerializationBinder with get, set
Public Property Binder As SerializationBinder
属性值
在反序列化过程中执行类型查找的 SerializationBinder。The SerializationBinder that performs type lookups during deserialization.
注解
尝试从流中编码的信息解析类型时,格式化程序将调用上的 BindToType 方法 SerializationBinder 。When trying to resolve a type from information encoded on the stream, the formatter calls the BindToType method on the SerializationBinder. 此方法将这些参数解析为 Type 对象。This method resolves these parameters to a Type object. 联编程序可以在 Type 反序列化时找到与序列化时间不同的程序集中的。The binder can find a Type at deserialization time that is in a different assembly than it was at serialization time.
设置此属性在序列化过程中不起作用。Setting this property has no effect during serialization.