SerializationBinder::BindToType Method (String^, String^)

 

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:
virtual Type^ BindToType(
	String^ assemblyName,
	String^ typeName
) abstract

Parameters

assemblyName
Type: System::String^

Specifies the Assembly name of the serialized object.

typeName
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
Available since 1.1
Return to top
Show: