Binder Property
Collapse the table of content
Expand the table of content

IFormatter.Binder Property

 

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

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

SerializationBinder Binder { get; set; }

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:
© 2016 Microsoft