IFormatter::Binder Property

 

Gets or sets the SerializationBinder that performs type lookups during deserialization.

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

property SerializationBinder^ Binder {
	SerializationBinder^ get();
	void set(SerializationBinder^ value);
}

Property Value

Type: System.Runtime.Serialization::SerializationBinder^

The SerializationBinder that performs type lookups during deserialization.

When trying to resolve a type from information encoded on the stream, the formatter calls the BindToType method on the SerializationBinder. This method resolves these parameters to a Type object. 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.

.NET Framework
Available since 1.1
Return to top
Show: