Skip to main content
All docs
V23.2

DeserializationSettings.RegisterTrustedClass(String) Method

Enables deserialization of the specified data type.

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

public static void RegisterTrustedClass(
    string typeName
)

Parameters

Name Type Description
typeName String

The 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