Export (0) Print
Expand All

SerializationBinder.BindToType Method

When overridden in a derived class, controls the binding of a serialized object to a type.

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

public abstract Type BindToType(
	string assemblyName,
	string typeName


Type: System.String

Specifies the Assembly name of the serialized object.

Type: System.String

Specifies the Type name of the serialized object.

Return Value

Type: System.Type
The type of the object the formatter creates a new instance of.

Notes to Inheritors

You must implement the current method in a derived class.

SerializationBinder Example#1

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft