AllowedTypesSerializationBinder.BindToType(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Given the assemblyName
and typeName
parameters,
it validates if the resulted Type is found in the AllowedTypes collection, and returns its value.
When found, it will add the Type to the AllowedTypes collection if it doesn't exist.
public override Type BindToType (string assemblyName, string typeName);
override this.BindToType : string * string -> Type
Public Overrides Function BindToType (assemblyName As String, typeName As String) As Type
Parameters
- assemblyName
- String
Specifies the System.Reflection.Assembly name of the serialized object.
- typeName
- String
Specifies the System.Type name of the serialized object.
Returns
The resulted Type from the provided assemblyName
and typeName
parameters.