Share via


AllowedTypesSerializationBinder.BindToType(String, String) Method

Definition

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.

Applies to