expressappframework-devexpress-dot-expressapp-dot-security-dot-securitystrategy-119764e4.md
Specifies the list of additional types to be secured (for example, non-persistent object types).
Namespace : DevExpress.ExpressApp.Security
Assembly : DevExpress.ExpressApp.Security.v25.2.dll
NuGet Package : DevExpress.ExpressApp.Security
public static readonly IList<Type> AdditionalSecuredTypes
Public Shared ReadOnly AdditionalSecuredTypes As IList(Of Type)
| Type | Description |
|---|---|
| IList<Type> |
A list of additional types to be secured (for example, non-persistent object types).
|
The Security System allows you to configure Type Permissions for persistent types only. Non-persistent objects are not secured and users can access them. If you want to protect a non-persistent object type, add this type to the static SecurityStrategy.AdditionalSecuredTypes collection and configure a Type permission for this type.
The following examples show how to add the non-persistent MyClass type to the AdditionalSecuredTypes collection.
WinForms
using DevExpress.ExpressApp.Security;
// ...
public partial class MainDemoWinApplication : WinApplication {
static MainDemoWinApplication() {
SecurityStrategy.AdditionalSecuredTypes.Add(typeof(MyClass));
}
// ...
}
ASP.NET Core Blazor
using DevExpress.ExpressApp.Security;
// ...
public partial class MainDemoBlazorApplication : BlazorApplication {
static MainDemoBlazorApplication() {
SecurityStrategy.AdditionalSecuredTypes.Add(typeof(MyClass));
}
// ...
}
See Also