ITypeNameFilter.IsTypeNameAllowed(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.
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.