WCF-Xtensions Class Reference for Mono
BindToType Method (DefaultSerializationBinder)






Specifies the System.Reflection.Assembly name of the serialized object.
Specifies the System.Type name of the serialized object.
When overridden in a derived class, controls the binding of a serialized object to a type.
Syntax
'Declaration
 
Public Overrides Function BindToType( _
   ByVal assemblyName As System.String, _
   ByVal typeName As System.String _
) As System.Type
'Usage
 
Dim instance As DefaultSerializationBinder
Dim assemblyName As System.String
Dim typeName As System.String
Dim value As System.Type
 
value = instance.BindToType(assemblyName, typeName)
public override System.Type BindToType( 
   System.string assemblyName,
   System.string typeName
)
public function BindToType( 
    assemblyName: System.String;
    typeName: System.String
): System.Type; override; 
public override function BindToType( 
   assemblyName : System.String,
   typeName : System.String
) : System.Type;
public: System.Type* BindToType( 
   System.string* assemblyName,
   System.string* typeName
) override 
public:
System.Type^ BindToType( 
   System.String^ assemblyName,
   System.String^ typeName
) override 

Parameters

assemblyName
Specifies the System.Reflection.Assembly name of the serialized object.
typeName
Specifies the System.Type name of the serialized object.

Return Value

The type of the object the formatter creates a new instance of.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DefaultSerializationBinder Class
DefaultSerializationBinder Members
Base Implementation in BindToType

Send Feedback