DeserializationSettings.RegisterTrustedClass(Type) Method
Enables deserialization of the specified data type.
Namespace: DevExpress.Utils
Assembly: DevExpress.Data.v23.2.dll
NuGet Package: DevExpress.Data
Declaration
Parameters
Name | Type | Description |
---|---|---|
type | Type | The custom data type. |
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the RegisterTrustedClass(Type) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.