Edit

Share via


ITypeNameFilter.IsTypeNameAllowed(String, String) Method

Definition

Determines whether the specified type name corresponds to a type which is allowed to be loaded, serialized, deserialized, etcetera.

public bool? IsTypeNameAllowed (string typeName, string assemblyName);
abstract member IsTypeNameAllowed : string * string -> Nullable<bool>
Public Function IsTypeNameAllowed (typeName As String, assemblyName As String) As Nullable(Of Boolean)

Parameters

typeName
String

Name of the type.

assemblyName
String

Name of the assembly.

Returns

true if the specified type is allowed; false if the type is not allowed; null if the type is unknown by this filter.

Applies to