Skip to main content
All docs
V25.1
  • DeserializationSettings.RegisterTrustedClass(String, String) Method

    Enables deserialization of the specified data type in the specified assembly.

    Namespace: DevExpress.Utils

    Assembly: DevExpress.Data.v25.1.dll

    NuGet Package: DevExpress.Data

    Declaration

    public static void RegisterTrustedClass(
        string assemblyName,
        string typeName
    )

    Parameters

    Name Type Description
    assemblyName String

    The assembly name.

    typeName String

    The data type name.

    Remarks

    DevExpress UI controls automatically detect potentially dangerous data types, block their deserialization, and throw a security-related exception.

    If you trust a certain custom type, use the RegisterTrustedClass method to enable deserialization.

    Use the RegisterTrustedAssembly method to enable deserialization for all data types in the specified assembly.

    Read the following topic for more information: Safe Deserialization.

    See Also