WCF-Xtensions Class Reference for .NET
BindToType Method (FlexibleSerializationBinder)






The name of assembly containing the type. Can be String.Empty.
The full name of the type.
Resolves the assembly name and type name to the type.
Syntax
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 
'Declaration
 
Public Overrides Function BindToType( _
   ByVal assemblyName As System.String, _
   ByVal typeName As System.String _
) As System.Type
 
'Usage
 
Dim instance As FlexibleSerializationBinder
Dim assemblyName As System.String
Dim typeName As System.String
Dim value As System.Type
 
value = instance.BindToType(assemblyName, typeName)

Parameters

assemblyName
The name of assembly containing the type. Can be String.Empty.
typeName
The full name of the type.

Return Value

The type resolved from its name and name of assembly.
Remarks
In cases when name of assembly is ommited or when the specified assembly cannot be found, attempts to load the type from the currently executing assembly.
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

FlexibleSerializationBinder Class
FlexibleSerializationBinder Members
Base Implementation in BindToType

Send Feedback