Share via


AllowedTypesSerializationBinder.BindToName(Type, String, String) Method

Definition

Given the serializedType parameter, it evaluates if the Type is allowed by this SerializationBinder.

Either allowed or not allowed, it will output the name of the Type through the typeName parameter.

When allowed, it will add the Type to the AllowedTypes collection.

public override void BindToName (Type serializedType, out string assemblyName, out string typeName);
override this.BindToName : Type * string * string -> unit
Public Overrides Sub BindToName (serializedType As Type, ByRef assemblyName As String, ByRef typeName As String)

Parameters

serializedType
Type

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

assemblyName
String

Specifies the System.Reflection.Assembly name of the serialized object.

typeName
String

Specifies the System.Type name of the serialized object.

Applies to